|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.essbase.eas.framework.server.application.DefaultApplicationPart
public abstract class DefaultApplicationPart
implementation of an application part. This is an abstract class that contains an empty implementation of the ApplicationPart
interface. Derived classes must override the getRoles()
method.
Field Summary | |
---|---|
protected static java.lang.String |
CHAIN_SEPARATOR |
protected ApplicationPart |
manager |
protected java.util.ArrayList |
parts |
protected ServiceContext |
serviceContext |
protected ServiceManager |
serviceManager |
protected byte |
state contains the state of this application part object. |
protected static byte |
STATE_BEFORE_WORKERS_ASSIGNED |
protected static byte |
STATE_CONSTRUCTED |
protected static byte |
STATE_DESTROYED |
protected static byte |
STATE_INITIALIZED |
protected static byte |
STATE_MANAGED |
protected static byte |
STATE_NULL |
protected static byte |
STATE_WORKERS_ASSIGNED |
protected static byte |
STATE_WORKERS_INITIALIZED |
protected StoreService |
storeService |
Constructor Summary | |
---|---|
protected |
DefaultApplicationPart() Constructs a DefaultApplicationPart object. |
Method Summary | |
---|---|
java.lang.Object |
destroy() Implementation of the ApplicationPart.destroy() method. |
ApplicationPart |
getManager() returns the manager for this application part. |
java.lang.String |
getManagerChain() |
ServiceContext |
getServiceContext() Implementation of the ApplicationPart.getServiceContext() method. |
ServiceManager |
getServiceManager() Implementation of the ApplicationPart.getServiceManager() method. |
StoreService |
getStoreService() Implementation of the ApplicationPart.getServiceContext() method. |
java.lang.Object |
init(ServiceContext context) Initializes and stores mandatory and optimizing references. |
void |
initWorkers(ServiceContext context) Implementation of the ApplicationPart.initWorkers() method. |
protected ApplicationPart |
requestPart(java.lang.Class c, ServiceContext context) Locates and returns a requested sub-part of this application part. |
protected ApplicationPart[] |
requestPartPool(java.lang.Class c, ServiceContext context) |
void |
setManager(ApplicationPart manager) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.essbase.eas.framework.server.defs.ApplicationPart |
---|
assignWorkers, getRoles |
Field Detail |
---|
protected static final byte STATE_NULL
protected static final byte STATE_CONSTRUCTED
protected static final byte STATE_MANAGED
protected static final byte STATE_INITIALIZED
protected static final byte STATE_BEFORE_WORKERS_ASSIGNED
protected static final byte STATE_WORKERS_ASSIGNED
protected static final byte STATE_WORKERS_INITIALIZED
protected static final byte STATE_DESTROYED
protected static java.lang.String CHAIN_SEPARATOR
protected byte state
protected ServiceManager serviceManager
protected ServiceContext serviceContext
protected StoreService storeService
protected ApplicationPart manager
protected java.util.ArrayList parts
Constructor Detail |
---|
protected DefaultApplicationPart()
DefaultApplicationPart
object.Method Detail |
---|
public java.lang.Object init(ServiceContext context) throws ApplicationException
init
in interface ApplicationPart
context
- - the ServiceContext
object for this contextApplicationException
protected ApplicationPart requestPart(java.lang.Class c, ServiceContext context) throws ApplicationException
c
- a class object representing the type of part being requestedcontext
- the service context for the requestApplicationPart
object for the part being requested.ApplicationException
protected ApplicationPart[] requestPartPool(java.lang.Class c, ServiceContext context) throws ApplicationException
ApplicationException
public void initWorkers(ServiceContext context) throws ApplicationException
ApplicationPart.initWorkers()
method.initWorkers
in interface ApplicationPart
context
- the service contextApplicationException
public void setManager(ApplicationPart manager) throws ApplicationException
setManager
in interface ApplicationPart
manager
-ApplicationException
public java.lang.Object destroy() throws ApplicationException
ApplicationPart.destroy()
method. Releases all references.destroy
in interface ApplicationPart
null
ApplicationException
public ServiceManager getServiceManager() throws ApplicationException
ApplicationPart.getServiceManager()
method.getServiceManager
in interface ApplicationPart
ApplicationException
- if the state is not equal to STATE_INITIALIZED
public ServiceContext getServiceContext() throws ApplicationException
ApplicationPart.getServiceContext()
method.getServiceContext
in interface ApplicationPart
ApplicationException
- if the state is not equal to STATE_INITIALIZED
public StoreService getStoreService() throws ApplicationException
ApplicationPart.getServiceContext()
method.getStoreService
in interface ApplicationPart
ApplicationException
- if the state is not equal to STATE_INITIALIZED
public ApplicationPart getManager()
getManager
in interface ApplicationPart
ApplicationPart
object that is the manager for this application part. null
if a manager has not been set yet.public java.lang.String getManagerChain()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |