Expresso 5-6

com.jcorporate.expresso.kernel
Class ComponentBase

java.lang.Object
  extended bycom.jcorporate.expresso.kernel.ComponentBase
All Implemented Interfaces:
Describable, ExpressoComponent, Serializable
Direct Known Subclasses:
ContainerComponentBase, CryptoManager, DefaultCacheManager, DefaultServiceWriter

public abstract class ComponentBase
extends Object
implements ExpressoComponent, Describable

This class provides a convienience base class for the majority of the ExpressoComponent interfaces. Derive from this class if you wish to create a component that is not a component container.

If you derive from this class, the class expresso runtime system automatically looks in the same package as the component's class name. And looks for an xml file with the same class as your derived component.

Author:
Michael Rimov
See Also:
Serialized Form

Constructor Summary
ComponentBase()
          Default do nothing constructor
ComponentBase(Containable parent)
          Constructor that takes the parent container as the argument
 
Method Summary
 ComponentMetadata getMetaData()
          Retrieve the metadata for the component
 URL getMetadataLocation()
          Return the metadata of this class.
 Containable getParent()
          Retrieve reference to the component container
 void setMetaData(ComponentMetadata metadata)
          Allows the metadata to be set by the system factory.
 void setParent(Containable parent)
          Set the component container reference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentBase

public ComponentBase()
Default do nothing constructor


ComponentBase

public ComponentBase(Containable parent)
Constructor that takes the parent container as the argument

Parameters:
parent - The parent container
Method Detail

getMetaData

public ComponentMetadata getMetaData()
Retrieve the metadata for the component

Specified by:
getMetaData in interface ExpressoComponent
Returns:
ComponentMetadata

getParent

public Containable getParent()
Retrieve reference to the component container

Specified by:
getParent in interface ExpressoComponent
Returns:
the Container reference

setParent

public void setParent(Containable parent)
Set the component container reference

Specified by:
setParent in interface ExpressoComponent
Parameters:
parent - the parent container

setMetaData

public void setMetaData(ComponentMetadata metadata)
Allows the metadata to be set by the system factory.

Specified by:
setMetaData in interface Describable
Parameters:
metadata - the Metadata for this particular component.

getMetadataLocation

public URL getMetadataLocation()
Return the metadata of this class. This implementation looks for an xml file by the same name as the component class itself and in the same package location as the original class.

Specified by:
getMetadataLocation in interface Describable
Returns:
URL of the metadata location

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.