Skip navigation links


com.essbase.eas.framework.server.application
Class DefaultApplicationPart

java.lang.Object
  extended by com.essbase.eas.framework.server.application.DefaultApplicationPart

All Implemented Interfaces:
ApplicationPart
Direct Known Subclasses:
AbstractCommandListener, AbstractEventDispatcher, AbstractWorkListener, DefaultApplication, DefaultCommandDispatcher, DefaultCommandFactory, DefaultEventController, DefaultExceptionDispatcher, DefaultExceptionFactory, DefaultViewHandler, DefaultWorkDispatcher, DefaultWorkFactory

public abstract class DefaultApplicationPart
extends java.lang.Object
implements ApplicationPart

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.

Since:
6.5.2
Version:
6.5.2, 10/01/02
Author:
Hank Cox, Painted Word

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

STATE_NULL

protected static final byte STATE_NULL
See Also:
Constant Field Values

STATE_CONSTRUCTED

protected static final byte STATE_CONSTRUCTED
See Also:
Constant Field Values

STATE_MANAGED

protected static final byte STATE_MANAGED
See Also:
Constant Field Values

STATE_INITIALIZED

protected static final byte STATE_INITIALIZED
See Also:
Constant Field Values

STATE_BEFORE_WORKERS_ASSIGNED

protected static final byte STATE_BEFORE_WORKERS_ASSIGNED
See Also:
Constant Field Values

STATE_WORKERS_ASSIGNED

protected static final byte STATE_WORKERS_ASSIGNED
See Also:
Constant Field Values

STATE_WORKERS_INITIALIZED

protected static final byte STATE_WORKERS_INITIALIZED
See Also:
Constant Field Values

STATE_DESTROYED

protected static final byte STATE_DESTROYED
See Also:
Constant Field Values

CHAIN_SEPARATOR

protected static java.lang.String CHAIN_SEPARATOR

state

protected byte state
contains the state of this application part object.

serviceManager

protected ServiceManager serviceManager

serviceContext

protected ServiceContext serviceContext

storeService

protected StoreService storeService

manager

protected ApplicationPart manager

parts

protected java.util.ArrayList parts

Constructor Detail

DefaultApplicationPart

protected DefaultApplicationPart()
Constructs a DefaultApplicationPart object.

Method Detail

init

public java.lang.Object init(ServiceContext context)
                      throws ApplicationException
Initializes and stores mandatory and optimizing references.
Specified by:
init in interface ApplicationPart
Parameters:
context - - the ServiceContext object for this context
Returns:
Throws:
ApplicationException

requestPart

protected ApplicationPart requestPart(java.lang.Class c,
                                      ServiceContext context)
                               throws ApplicationException
Locates and returns a requested sub-part of this application part. Extended class can use this as a utility method. If the part doesn't exist, then use the dispatching mechanism to attempt to create it.
Parameters:
c - a class object representing the type of part being requested
context - the service context for the request
Returns:
an ApplicationPart object for the part being requested.
Throws:
ApplicationException

requestPartPool

protected ApplicationPart[] requestPartPool(java.lang.Class c,
                                            ServiceContext context)
                                     throws ApplicationException
Throws:
ApplicationException

initWorkers

public void initWorkers(ServiceContext context)
                 throws ApplicationException
Implementation of the ApplicationPart.initWorkers() method.
Specified by:
initWorkers in interface ApplicationPart
Parameters:
context - the service context
Throws:
ApplicationException

setManager

public void setManager(ApplicationPart manager)
                throws ApplicationException
Specified by:
setManager in interface ApplicationPart
Parameters:
manager -
Throws:
ApplicationException

destroy

public java.lang.Object destroy()
                         throws ApplicationException
Implementation of the ApplicationPart.destroy() method. Releases all references.
Specified by:
destroy in interface ApplicationPart
Returns:
allways returns null
Throws:
ApplicationException

getServiceManager

public ServiceManager getServiceManager()
                                 throws ApplicationException
Implementation of the ApplicationPart.getServiceManager() method.
Specified by:
getServiceManager in interface ApplicationPart
Returns:
the service manager for this application part.
Throws:
ApplicationException - if the state is not equal to STATE_INITIALIZED

getServiceContext

public ServiceContext getServiceContext()
                                 throws ApplicationException
Implementation of the ApplicationPart.getServiceContext() method.
Specified by:
getServiceContext in interface ApplicationPart
Returns:
the service context for this application part.
Throws:
ApplicationException - if the state is not equal to STATE_INITIALIZED

getStoreService

public StoreService getStoreService()
                             throws ApplicationException
Implementation of the ApplicationPart.getServiceContext() method.
Specified by:
getStoreService in interface ApplicationPart
Returns:
the store service for this application part.
Throws:
ApplicationException - if the state is not equal to STATE_INITIALIZED

getManager

public ApplicationPart getManager()
returns the manager for this application part.
Specified by:
getManager in interface ApplicationPart
Returns:
an ApplicationPart object that is the manager for this application part. null if a manager has not been set yet.

getManagerChain

public java.lang.String getManagerChain()
Returns:

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.