Class DynamicConfigurationImpl

java.lang.Object
org.jvnet.hk2.internal.DynamicConfigurationImpl
All Implemented Interfaces:
org.glassfish.hk2.api.DynamicConfiguration

public class DynamicConfigurationImpl extends Object implements org.glassfish.hk2.api.DynamicConfiguration
The system implementation of the DynamicConfiguration service
Author:
jwells
  • Constructor Summary

    Constructors
    Constructor
    Description
    Created by the generator, and hence must be public
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> org.glassfish.hk2.api.ActiveDescriptor<T>
     
    <T> org.glassfish.hk2.api.ActiveDescriptor<T>
    addActiveDescriptor(org.glassfish.hk2.api.ActiveDescriptor<T> activeDescriptor)
     
    <T> org.glassfish.hk2.api.ActiveDescriptor<T>
    addActiveDescriptor(org.glassfish.hk2.api.ActiveDescriptor<T> activeDescriptor, boolean requiresDeepCopy)
     
    <T> org.glassfish.hk2.api.FactoryDescriptors
    addActiveFactoryDescriptor(Class<? extends org.glassfish.hk2.api.Factory<T>> rawFactoryClass)
     
    void
    addIdempotentFilter(org.glassfish.hk2.api.Filter... idempotentFilter)
     
    void
    addUnbindFilter(org.glassfish.hk2.api.Filter unbindFilter)
     
    <T> org.glassfish.hk2.api.ActiveDescriptor<T>
    bind(org.glassfish.hk2.api.Descriptor key)
     
    <T> org.glassfish.hk2.api.ActiveDescriptor<T>
    bind(org.glassfish.hk2.api.Descriptor key, boolean requiresDeepCopy)
     
    org.glassfish.hk2.api.FactoryDescriptors
    bind(org.glassfish.hk2.api.FactoryDescriptors factoryDescriptors)
     
    org.glassfish.hk2.api.FactoryDescriptors
    bind(org.glassfish.hk2.api.FactoryDescriptors factoryDescriptors, boolean requiresDeepCopy)
     
    void
     
    void
    registerTwoPhaseResources(org.glassfish.hk2.api.TwoPhaseResource... resources)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DynamicConfigurationImpl

      public DynamicConfigurationImpl(ServiceLocatorImpl locator)
      Created by the generator, and hence must be public
      Parameters:
      locator - The locator for which this will be the configuration service
  • Method Details

    • bind

      public <T> org.glassfish.hk2.api.ActiveDescriptor<T> bind(org.glassfish.hk2.api.Descriptor key)
      Specified by:
      bind in interface org.glassfish.hk2.api.DynamicConfiguration
    • bind

      public <T> org.glassfish.hk2.api.ActiveDescriptor<T> bind(org.glassfish.hk2.api.Descriptor key, boolean requiresDeepCopy)
      Specified by:
      bind in interface org.glassfish.hk2.api.DynamicConfiguration
    • bind

      public org.glassfish.hk2.api.FactoryDescriptors bind(org.glassfish.hk2.api.FactoryDescriptors factoryDescriptors)
      Specified by:
      bind in interface org.glassfish.hk2.api.DynamicConfiguration
    • bind

      public org.glassfish.hk2.api.FactoryDescriptors bind(org.glassfish.hk2.api.FactoryDescriptors factoryDescriptors, boolean requiresDeepCopy)
      Specified by:
      bind in interface org.glassfish.hk2.api.DynamicConfiguration
    • addActiveDescriptor

      public <T> org.glassfish.hk2.api.ActiveDescriptor<T> addActiveDescriptor(org.glassfish.hk2.api.ActiveDescriptor<T> activeDescriptor) throws IllegalArgumentException
      Specified by:
      addActiveDescriptor in interface org.glassfish.hk2.api.DynamicConfiguration
      Throws:
      IllegalArgumentException
    • addActiveDescriptor

      public <T> org.glassfish.hk2.api.ActiveDescriptor<T> addActiveDescriptor(org.glassfish.hk2.api.ActiveDescriptor<T> activeDescriptor, boolean requiresDeepCopy) throws IllegalArgumentException
      Specified by:
      addActiveDescriptor in interface org.glassfish.hk2.api.DynamicConfiguration
      Throws:
      IllegalArgumentException
    • addActiveDescriptor

      public <T> org.glassfish.hk2.api.ActiveDescriptor<T> addActiveDescriptor(Class<T> rawClass) throws IllegalArgumentException
      Specified by:
      addActiveDescriptor in interface org.glassfish.hk2.api.DynamicConfiguration
      Throws:
      IllegalArgumentException
    • addActiveFactoryDescriptor

      public <T> org.glassfish.hk2.api.FactoryDescriptors addActiveFactoryDescriptor(Class<? extends org.glassfish.hk2.api.Factory<T>> rawFactoryClass) throws org.glassfish.hk2.api.MultiException, IllegalArgumentException
      Specified by:
      addActiveFactoryDescriptor in interface org.glassfish.hk2.api.DynamicConfiguration
      Throws:
      org.glassfish.hk2.api.MultiException
      IllegalArgumentException
    • addUnbindFilter

      public void addUnbindFilter(org.glassfish.hk2.api.Filter unbindFilter) throws IllegalArgumentException
      Specified by:
      addUnbindFilter in interface org.glassfish.hk2.api.DynamicConfiguration
      Throws:
      IllegalArgumentException
    • addIdempotentFilter

      public void addIdempotentFilter(org.glassfish.hk2.api.Filter... idempotentFilter) throws IllegalArgumentException
      Specified by:
      addIdempotentFilter in interface org.glassfish.hk2.api.DynamicConfiguration
      Throws:
      IllegalArgumentException
    • registerTwoPhaseResources

      public void registerTwoPhaseResources(org.glassfish.hk2.api.TwoPhaseResource... resources)
      Specified by:
      registerTwoPhaseResources in interface org.glassfish.hk2.api.DynamicConfiguration
    • commit

      public void commit() throws org.glassfish.hk2.api.MultiException
      Specified by:
      commit in interface org.glassfish.hk2.api.DynamicConfiguration
      Throws:
      org.glassfish.hk2.api.MultiException
    • toString

      public String toString()
      Overrides:
      toString in class Object