|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.server.kernel.BaseService
org.jboss.portal.server.ServerObject
public abstract class ServerObject
A common base for portal objects that live in a portal container.
Field Summary | |
---|---|
protected org.apache.log4j.Logger |
log
Logger. |
protected java.lang.String |
name
Node name. |
protected java.util.Map |
plugins
Dependant plugins. |
Fields inherited from class org.jboss.portal.server.kernel.BaseService |
---|
ctx |
Constructor Summary | |
---|---|
ServerObject(java.lang.String name)
|
Method Summary | |
---|---|
void |
addDependsOnMe(ServiceImplementation implementation)
Add a service depending on this one. |
void |
addIDependOn(ServiceImplementation implementation)
Add a service it depends on. |
void |
addPlugin(java.lang.String key,
Plugin plugin)
|
void |
create()
Create. |
ServerObjectContext |
createContext()
Create and returns a context object. |
ServerURL |
createURL()
Create a new URL for that will target this object. |
void |
destroy()
Destroy. |
ServerObjectID |
getID()
Return an ID that uniquely identify this portal object. |
abstract ServerObjectMetaData |
getMetaData()
Return the meta data for that object. |
java.lang.String |
getName()
Return the name. |
Plugin |
getPlugin(java.lang.String key)
|
java.util.Set |
getPluginKeySet()
|
abstract PortalServer |
getServer()
Return the container this object belongs to. |
java.lang.Object |
invoke(Invocation invocation)
Invoke on this object. |
void |
removeDependsOnMe(ServiceImplementation implementation)
Remove a service depending on this one. |
void |
removeIDependOn(ServiceImplementation implementation)
Remove a service it depends on. |
void |
removePlugin(java.lang.String key)
|
void |
start()
Start. |
void |
stop()
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 |
---|
protected final java.lang.String name
protected final org.apache.log4j.Logger log
protected java.util.Map plugins
Constructor Detail |
---|
public ServerObject(java.lang.String name)
java.lang.IllegalArgumentException
- if the component name is nullMethod Detail |
---|
public abstract ServerObjectMetaData getMetaData()
public ServerObjectID getID()
public abstract PortalServer getServer()
public java.lang.String getName()
public ServerObjectContext createContext() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the object does not support contextualizationpublic void addIDependOn(ServiceImplementation implementation)
Registration
addIDependOn
in interface Registration
addIDependOn
in class BaseService
public void removeIDependOn(ServiceImplementation implementation)
Registration
removeIDependOn
in interface Registration
removeIDependOn
in class BaseService
public void addDependsOnMe(ServiceImplementation implementation)
Registration
addDependsOnMe
in interface Registration
addDependsOnMe
in class BaseService
public void removeDependsOnMe(ServiceImplementation implementation)
Registration
removeDependsOnMe
in interface Registration
removeDependsOnMe
in class BaseService
public void addPlugin(java.lang.String key, Plugin plugin)
addPlugin
in interface PluginContainer
public void removePlugin(java.lang.String key)
removePlugin
in interface PluginContainer
public Plugin getPlugin(java.lang.String key)
getPlugin
in interface PluginContainer
public java.util.Set getPluginKeySet()
getPluginKeySet
in interface PluginContainer
public void create() throws java.lang.Exception
Service
create
in interface Service
create
in class BaseService
java.lang.Exception
public void start() throws java.lang.Exception
Service
start
in interface Service
start
in class BaseService
java.lang.Exception
public void stop()
Service
stop
in interface Service
stop
in class BaseService
public void destroy()
Service
destroy
in interface Service
destroy
in class BaseService
public java.lang.Object invoke(Invocation invocation)
public ServerURL createURL()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |