Package org.jvnet.hk2.spring.bridge.api
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.glassfish.hk2.api.ServiceLocatorReturns theServiceLocatorassociated with this scopevoidregisterDestructionCallback(String arg0, Runnable arg1) voidsetServiceLocator(org.glassfish.hk2.api.ServiceLocator locator) Sets the service locator to use with this scopevoidsetServiceLocatorName(String name) This can be used to configure the name of the service locator to use
-
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
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 theServiceLocatorassociated with this scope- Returns:
- The
ServiceLocatorto be used with this scope
-
get
- Specified by:
getin interfaceorg.springframework.beans.factory.config.Scope
-
getConversationId
- Specified by:
getConversationIdin interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
- Specified by:
registerDestructionCallbackin interfaceorg.springframework.beans.factory.config.Scope
-
remove
- Specified by:
removein interfaceorg.springframework.beans.factory.config.Scope
-
resolveContextualObject
- Specified by:
resolveContextualObjectin interfaceorg.springframework.beans.factory.config.Scope
-