org.jboss.portal.server
Class Component

java.lang.Object
  extended by org.jboss.portal.server.kernel.BaseService
      extended by org.jboss.portal.server.ServerObject
          extended by org.jboss.portal.server.Component
All Implemented Interfaces:
PluginContainer, Registration, Service
Direct Known Subclasses:
PortletContainer

public abstract class Component
extends ServerObject


Field Summary
protected  Application application
          The application this component belongs to.
protected  java.lang.Integer expirationCache
          If not null, specifiy the caching behaviour.
protected  Valve valve
          The invocation valve.
 
Fields inherited from class org.jboss.portal.server.ServerObject
log, name, plugins
 
Fields inherited from class org.jboss.portal.server.kernel.BaseService
ctx
 
Constructor Summary
protected Component(java.lang.String name)
           
 
Method Summary
 void addIDependOn(ServiceImplementation implementation)
          Add a service it depends on.
 Application getApplication()
          Returns the application that component belongs to.
 ContentTypes getContentTypes()
           
 java.lang.Integer getExpirationCache()
          Return the expiration cache value in seconds if any.
 PortalServer getServer()
          Return the container this object belongs to.
 Valve getValve()
          The invocation valve.
 java.lang.Object invoke(Invocation invocation)
          Invoke on this component.
 void removeIDependOn(ServiceImplementation implementation)
          Remove a service it depends on.
 
Methods inherited from class org.jboss.portal.server.ServerObject
addDependsOnMe, addPlugin, create, createContext, createURL, destroy, getID, getMetaData, getName, getPlugin, getPluginKeySet, removeDependsOnMe, removePlugin, start, stop
 
Methods inherited from class org.jboss.portal.server.kernel.BaseService
registered, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.portal.server.kernel.Registration
registered, unregister
 

Field Detail

application

protected Application application
The application this component belongs to.


expirationCache

protected java.lang.Integer expirationCache
If not null, specifiy the caching behaviour.


valve

protected final Valve valve
The invocation valve.

Constructor Detail

Component

protected Component(java.lang.String name)
Method Detail

getServer

public PortalServer getServer()
Description copied from class: ServerObject
Return the container this object belongs to.

Specified by:
getServer in class ServerObject

getExpirationCache

public java.lang.Integer getExpirationCache()
Return the expiration cache value in seconds if any.


getContentTypes

public ContentTypes getContentTypes()

invoke

public java.lang.Object invoke(Invocation invocation)
Invoke on this component.

Overrides:
invoke in class ServerObject

getValve

public Valve getValve()
The invocation valve.


getApplication

public Application getApplication()
Returns the application that component belongs to.


addIDependOn

public void addIDependOn(ServiceImplementation implementation)
Description copied from interface: Registration
Add a service it depends on.

Specified by:
addIDependOn in interface Registration
Overrides:
addIDependOn in class ServerObject

removeIDependOn

public void removeIDependOn(ServiceImplementation implementation)
Description copied from interface: Registration
Remove a service it depends on.

Specified by:
removeIDependOn in interface Registration
Overrides:
removeIDependOn in class ServerObject