|
|||||||||
| 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 null| Method 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 RegistrationaddIDependOn in class BaseServicepublic void removeIDependOn(ServiceImplementation implementation)
Registration
removeIDependOn in interface RegistrationremoveIDependOn in class BaseServicepublic void addDependsOnMe(ServiceImplementation implementation)
Registration
addDependsOnMe in interface RegistrationaddDependsOnMe in class BaseServicepublic void removeDependsOnMe(ServiceImplementation implementation)
Registration
removeDependsOnMe in interface RegistrationremoveDependsOnMe in class BaseService
public void addPlugin(java.lang.String key,
Plugin plugin)
addPlugin in interface PluginContainerpublic void removePlugin(java.lang.String key)
removePlugin in interface PluginContainerpublic Plugin getPlugin(java.lang.String key)
getPlugin in interface PluginContainerpublic java.util.Set getPluginKeySet()
getPluginKeySet in interface PluginContainer
public void create()
throws java.lang.Exception
Service
create in interface Servicecreate in class BaseServicejava.lang.Exception
public void start()
throws java.lang.Exception
Service
start in interface Servicestart in class BaseServicejava.lang.Exceptionpublic void stop()
Service
stop in interface Servicestop in class BaseServicepublic void destroy()
Service
destroy in interface Servicedestroy in class BaseServicepublic 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 | ||||||||