Class Hk2BridgeImpl
java.lang.Object
org.glassfish.hk2.extras.hk2bridge.internal.Hk2BridgeImpl
- All Implemented Interfaces:
DynamicConfigurationListener
@Singleton
@Visibility(LOCAL)
public class Hk2BridgeImpl
extends Object
implements DynamicConfigurationListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Filter
private final ServiceLocator
private List
<ActiveDescriptor<?>> private ServiceLocator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method is called when the set of descriptors in this service locator has been changed.getMetadataLongsList
(Descriptor d, String field) Gets all of the longs encoded into this descriptors metadata fieldgetMetadataLongsSet
(Descriptor d, String field) Gets all of the longs encoded into this descriptors metadata fieldprivate void
handleChange
(List<ActiveDescriptor<?>> newDescriptors) private void
void
setRemote
(ServiceLocator remote)
-
Field Details
-
local
-
remote
-
filter
-
mirroredDescriptors
-
EMPTY_LIST
-
-
Constructor Details
-
Hk2BridgeImpl
-
-
Method Details
-
setRemote
-
handleChange
-
configurationChanged
public void configurationChanged()Description copied from interface:DynamicConfigurationListener
This method is called when the set of descriptors in this service locator has been changed. Changes to parent service locators descriptors will not be reported. These services are called back on the thread doing theDynamicConfiguration.commit()
so care should be taken to do any work quickly. Any exception thrown from this method will be ignored. A commit that failed will not be reported to this method- Specified by:
configurationChanged
in interfaceDynamicConfigurationListener
-
preDestroy
-
getMetadataLongsSet
Gets all of the longs encoded into this descriptors metadata field- Parameters:
d
-field
-- Returns:
-
getMetadataLongsList
Gets all of the longs encoded into this descriptors metadata field- Parameters:
d
-field
-- Returns:
-