@Singleton @Visibility(value=LOCAL) public class Hk2BridgeImpl extends java.lang.Object implements DynamicConfigurationListener
| Modifier and Type | Class and Description |
|---|---|
private static class |
Hk2BridgeImpl.NoLocalNoRemoteFilter |
private static class |
Hk2BridgeImpl.RemoveFilter |
| Modifier and Type | Field and Description |
|---|---|
private static java.util.List<java.lang.Long> |
EMPTY_LIST |
private Filter |
filter |
private ServiceLocator |
local |
private java.util.List<ActiveDescriptor<?>> |
mirroredDescriptors |
private ServiceLocator |
remote |
| Modifier | Constructor and Description |
|---|---|
private |
Hk2BridgeImpl(ServiceLocator local) |
| Modifier and Type | Method and Description |
|---|---|
void |
configurationChanged()
This method is called when the set of descriptors
in this service locator has been changed.
|
private static java.util.List<java.lang.Long> |
getMetadataLongsList(Descriptor d,
java.lang.String field)
Gets all of the longs encoded into this descriptors metadata
field
|
private static java.util.Set<java.lang.Long> |
getMetadataLongsSet(Descriptor d,
java.lang.String field)
Gets all of the longs encoded into this descriptors metadata
field
|
private void |
handleChange(java.util.List<ActiveDescriptor<?>> newDescriptors) |
private void |
preDestroy() |
void |
setRemote(ServiceLocator remote) |
private final ServiceLocator local
private ServiceLocator remote
private Filter filter
private java.util.List<ActiveDescriptor<?>> mirroredDescriptors
private static final java.util.List<java.lang.Long> EMPTY_LIST
@Inject private Hk2BridgeImpl(ServiceLocator local)
public void setRemote(ServiceLocator remote)
private void handleChange(java.util.List<ActiveDescriptor<?>> newDescriptors)
public void configurationChanged()
DynamicConfigurationListenerDynamicConfiguration.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 methodconfigurationChanged in interface DynamicConfigurationListener@PreDestroy private void preDestroy()
private static java.util.Set<java.lang.Long> getMetadataLongsSet(Descriptor d, java.lang.String field)
d - field - private static java.util.List<java.lang.Long> getMetadataLongsList(Descriptor d, java.lang.String field)
d - field -