|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.arch4j.baseservices.BaseServicesProvider
This class is the main provider for base system services offered by an
application server or other engine.
The services are accessed via the static getProvider()
method.
As an example of access to the base services:
InitialContext ic = BaseServicesProvider.getProvider().getInitialContext();
Field Summary | |
protected String |
BASE_SERVICES_CLASS_PROPERTY
The base service implementation class property name. |
protected String |
BASE_SERVICES_DOMAIN
The base services property file name. |
Constructor Summary | |
protected |
BaseServicesProvider()
Constructs an instance of this class and initializes the baseServices . |
Method Summary | |
protected Object |
createInstance(Class aClass)
Create an instance from the Class . |
BaseServices |
getBaseServices()
Returns a reference to the BaseServices implementation. |
protected Class |
getBaseServicesClass()
Get the base services implementation class to use from the property setting. |
static BaseServicesProvider |
getProvider()
Returns the singleton instance of this class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final String BASE_SERVICES_DOMAIN
protected final String BASE_SERVICES_CLASS_PROPERTY
Constructor Detail |
protected BaseServicesProvider()
baseServices
. This is made protected
so the
only way to access this class is through the getProvider
method.
Method Detail |
public static BaseServicesProvider getProvider()
public BaseServices getBaseServices()
BaseServices
implementation.
protected Class getBaseServicesClass()
EnvironmentalException
- if unable to retrieve the classname property or associate a
Class
object with the classname.protected Object createInstance(Class aClass)
Class
.
EnvironmentalException
- if fails to create a new instance of the Class
.
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |