org.apache.webbeans.corespi
Class DefaultSingletonService
java.lang.Object
org.apache.webbeans.corespi.DefaultSingletonService
- All Implemented Interfaces:
- SingletonService<WebBeansContext>
public class DefaultSingletonService
- extends Object
- implements SingletonService<WebBeansContext>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSingletonService
public DefaultSingletonService()
get
public WebBeansContext get(Object key)
- Gets singleton instance for deployment.
- Specified by:
get in interface SingletonService<WebBeansContext>
- Returns:
- signelton instance for this deployment
clearInstances
public void clearInstances(ClassLoader classLoader)
- Clear all deployment instances when the application is undeployed.
- Parameters:
classLoader - of the deployment
getSingletonClassLoader
public ClassLoader getSingletonClassLoader(Object object)
- Gets classloader with given singelton instance.
- Parameters:
object - singleton instance
- Returns:
- the classloader that instance is created within
clear
public void clear(Object classLoader)
-
- Specified by:
clear in interface SingletonService<WebBeansContext>
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.