org.defne.utility.factories
Class SingletonProvider
java.lang.Object
org.defne.utility.factories.SingletonProvider
public final class SingletonProvider
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVICE_SCANNER_CLASS
public static final String SERVICE_SCANNER_CLASS
- See Also:
- Constant Field Values
DEFAULT_EMF_PROVIDER_CLASS
public static final String DEFAULT_EMF_PROVIDER_CLASS
- See Also:
- Constant Field Values
getSingletonInstance
public static Object getSingletonInstance(String singletonName)
- Gets signelton instance.
- Parameters:
singletonName - singleton class name
- Returns:
- singleton instance
getSingletonInstance
public static Object getSingletonInstance(String singletonName,
ClassLoader classLoader)
- Gets singleton instance for deployment.
- Parameters:
singletonName - singleton class nameclassLoader - classloader of the deployment
- Returns:
- signelton instance for this deployment
clearInstances
public static void clearInstances(ClassLoader classLoader)
- Clear all deployment instances when the application is undeployed.
- Parameters:
classloader - of the deployment
Copyright © 2010 MechSoft Mechanical and Software Solutions. All Rights Reserved.