Class SpringScopeImpl

java.lang.Object
org.jvnet.hk2.spring.bridge.api.SpringScopeImpl
All Implemented Interfaces:
org.springframework.beans.factory.config.Scope

public class SpringScopeImpl extends Object implements org.springframework.beans.factory.config.Scope
Author:
jwells
  • Constructor Details

    • SpringScopeImpl

      public SpringScopeImpl()
  • Method Details

    • setServiceLocator

      public void setServiceLocator(org.glassfish.hk2.api.ServiceLocator locator)
      Sets the service locator to use with this scope
      Parameters:
      locator - The (non-null) locator to use for this scope
    • setServiceLocatorName

      public void setServiceLocatorName(String name)
      This can be used to configure the name of the service locator to use
      Parameters:
      name - The name to be used. If null an anonymous service locator will be used
    • getServiceLocator

      public org.glassfish.hk2.api.ServiceLocator getServiceLocator()
      Returns the ServiceLocator associated with this scope
      Returns:
      The ServiceLocator to be used with this scope
    • get

      public Object get(String contractName, org.springframework.beans.factory.ObjectFactory<?> factory)
      Specified by:
      get in interface org.springframework.beans.factory.config.Scope
    • getConversationId

      public String getConversationId()
      Specified by:
      getConversationId in interface org.springframework.beans.factory.config.Scope
    • registerDestructionCallback

      public void registerDestructionCallback(String arg0, Runnable arg1)
      Specified by:
      registerDestructionCallback in interface org.springframework.beans.factory.config.Scope
    • remove

      public Object remove(String arg0)
      Specified by:
      remove in interface org.springframework.beans.factory.config.Scope
    • resolveContextualObject

      public Object resolveContextualObject(String arg0)
      Specified by:
      resolveContextualObject in interface org.springframework.beans.factory.config.Scope