Package org.glassfish.hk2.utilities
Interface Binder
-
- All Known Implementing Classes:
AbstractBinder
,EnableLookupExceptionsModule
,ImmediateScopeModule
,InheritableThreadScopeModule
,PerThreadScopeModule
,RunLevelServiceModule
,ServiceLocatorTestRule
,TopicDistributionModule
@Contract public interface Binder
The binder is used in conjunction with theServiceLocatorUtilities.bind(org.glassfish.hk2.api.ServiceLocator, Binder...)
method in order to add (or remove) services to a ServiceLocator. This is useful when you have sets of related services to add into the locator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
bind(DynamicConfiguration config)
This method will be called by theServiceLocatorUtilities.bind(org.glassfish.hk2.api.ServiceLocator, Binder...)
method for each binder given.
-
-
-
Method Detail
-
bind
void bind(DynamicConfiguration config)
This method will be called by theServiceLocatorUtilities.bind(org.glassfish.hk2.api.ServiceLocator, Binder...)
method for each binder given. All of the updates will be committed as one commit operation.- Parameters:
config
- The non-null config to bind service references into
-
-