com.sri.common
Class ComponentSchema
java.lang.Object
com.jcorporate.expresso.kernel.ComponentBase
com.jcorporate.expresso.kernel.ContainerComponentBase
com.jcorporate.expresso.core.dbobj.Schema
com.sri.common.ComponentSchema
- All Implemented Interfaces:
- ComponentLifecycle, Containable, Describable, ExpressoComponent, com.jcorporate.expresso.services.controller.RegistrationFactory, ComponentSPI, ComponentServiceLocator, Serializable
- Direct Known Subclasses:
- EmoSchema
public abstract class ComponentSchema
- extends Schema
- implements ComponentSPI, ComponentServiceLocator
Abstract Base class for Schemas that wish to serve as a component factory.
- Version:
- 1.0
- Author:
- Michael Rimov
- See Also:
- Serialized Form
Methods inherited from class com.jcorporate.expresso.core.dbobj.Schema |
add, add, addController, addController, addController, addController, addDBObject, addDBObject, addDBObject, addDBObject, addDBObject, addJob, addReportPage, addReportPage, addServlet, addSetup, addSetup, configure, contains, destroy, getConfig, getControllerList, getDataContext, getDBName, getDBObjMap, getDefaultComponentCode, getDefaultDescription, getInstance, getJobs, getLoginController, getMembers, getMessageBundlePath, getMetadataLocation, getRegistrationController, getReports, getRequestingUser, getServlets, getSetupDefault, getSetupValue, getStartController, getString, getTests, getVersion, initialize, instantiate, otherSetup, otherSetup, populateSchemaData, reconfigure, requiresVersion, setDataContext, setDBName, setRequestingUser, setSetupValue, setupDefaultValues, setupDefaultValuesWithException |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentSchema
public ComponentSchema()
initializeApplicationContainer
public org.picocontainer.PicoContainer initializeApplicationContainer()
- Initialize the application container.
- Specified by:
initializeApplicationContainer
in interface ComponentSPI
- Returns:
- PicoContainer
setApplicationContainer
public void setApplicationContainer(org.picocontainer.MutablePicoContainer container)
locate
public Object locate(Object serviceKey)
throws NoSuchServiceException,
IllegalArgumentException
- Retrieves the desired service defined by the key.
- Specified by:
locate
in interface ComponentServiceLocator
- Parameters:
serviceKey
- Object usually the service interface class, but may
be other object.
- Returns:
- Object.
- Throws:
NoSuchServiceException
- if unable to locate the service.
IllegalArgumentException
- if service key is null.
addAllSchemaElementsToContainer
protected void addAllSchemaElementsToContainer(org.picocontainer.MutablePicoContainer pico)
throws org.picocontainer.PicoIntrospectionException,
org.picocontainer.PicoRegistrationException
- Throws:
org.picocontainer.PicoIntrospectionException
org.picocontainer.PicoRegistrationException
getApplicationContainer
public org.picocontainer.MutablePicoContainer getApplicationContainer()
- Specified by:
getApplicationContainer
in interface ComponentSPI
Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.