Package org.apache.webbeans.corespi
Class DefaultSingletonService
- java.lang.Object
-
- org.apache.webbeans.corespi.DefaultSingletonService
-
- All Implemented Interfaces:
org.apache.webbeans.spi.SingletonService<WebBeansContext>
public class DefaultSingletonService extends Object implements org.apache.webbeans.spi.SingletonService<WebBeansContext>
-
-
Constructor Summary
Constructors Constructor Description DefaultSingletonService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear(Object classLoader)voidclearInstances(ClassLoader classLoader)Clear all deployment instances when the application is undeployed.booleanexists(Object key)WebBeansContextget(Object key)Gets singleton instance for deployment.voidregister(ClassLoader key, WebBeansContext context)
-
-
-
Method Detail
-
get
public WebBeansContext get(Object key)
Gets singleton instance for deployment.- Specified by:
getin interfaceorg.apache.webbeans.spi.SingletonService<WebBeansContext>- Returns:
- singleton instance for this deployment
-
register
public void register(ClassLoader key, WebBeansContext context)
-
clearInstances
public void clearInstances(ClassLoader classLoader)
Clear all deployment instances when the application is undeployed.- Parameters:
classLoader- of the deployment
-
clear
public void clear(Object classLoader)
- Specified by:
clearin interfaceorg.apache.webbeans.spi.SingletonService<WebBeansContext>
-
exists
public boolean exists(Object key)
-
-