com.sri.common
Class ComponentSchema

java.lang.Object
  extended by com.jcorporate.expresso.kernel.ComponentBase
      extended by com.jcorporate.expresso.kernel.ContainerComponentBase
          extended by com.jcorporate.expresso.core.dbobj.Schema
              extended by 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

Constructor Summary
ComponentSchema()
           
 
Method Summary
protected  void addAllSchemaElementsToContainer(org.picocontainer.MutablePicoContainer pico)
           
 org.picocontainer.MutablePicoContainer getApplicationContainer()
           
 org.picocontainer.PicoContainer initializeApplicationContainer()
          Initialize the application container.
 Object locate(Object serviceKey)
          Retrieves the desired service defined by the key.
 void setApplicationContainer(org.picocontainer.MutablePicoContainer container)
           
 
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 com.jcorporate.expresso.kernel.ContainerComponentBase
getContainerImplementation, locateComponent, setContainerImplementation
 
Methods inherited from class com.jcorporate.expresso.kernel.ComponentBase
getMetaData, getParent, setMetaData, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jcorporate.expresso.kernel.ExpressoComponent
getMetaData, getParent, setParent
 

Constructor Detail

ComponentSchema

public ComponentSchema()
Method Detail

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.