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
  • Field Details

  • Constructor Details

  • Method Details

    • setRemote

      public void setRemote(ServiceLocator remote)
    • handleChange

      private void handleChange(List<ActiveDescriptor<?>> newDescriptors)
    • 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 the DynamicConfiguration.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 interface DynamicConfigurationListener
    • preDestroy

      @PreDestroy private void preDestroy()
    • getMetadataLongsSet

      private static Set<Long> getMetadataLongsSet(Descriptor d, String field)
      Gets all of the longs encoded into this descriptors metadata field
      Parameters:
      d -
      field -
      Returns:
    • getMetadataLongsList

      private static List<Long> getMetadataLongsList(Descriptor d, String field)
      Gets all of the longs encoded into this descriptors metadata field
      Parameters:
      d -
      field -
      Returns: