org.defne.utility.factories
Class SingletonProvider

java.lang.Object
  extended by org.defne.utility.factories.SingletonProvider

public final class SingletonProvider
extends Object


Field Summary
static String DEFAULT_EMF_PROVIDER_CLASS
           
static String SERVICE_SCANNER_CLASS
           
 
Method Summary
static void clearInstances(ClassLoader classLoader)
          Clear all deployment instances when the application is undeployed.
static Object getSingletonInstance(String singletonName)
          Gets signelton instance.
static Object getSingletonInstance(String singletonName, ClassLoader classLoader)
          Gets singleton instance for deployment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

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 name
classLoader - 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.