org.jboss.portal.server
Class PortalServer

java.lang.Object
  extended by org.jboss.portal.server.kernel.BaseService
      extended by org.jboss.portal.server.ServerObject
          extended by org.jboss.portal.server.PortalServer
All Implemented Interfaces:
PluginContainer, Registration, Service

public class PortalServer
extends ServerObject

A container for portal objects.


Field Summary
 
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
PortalServer(PortalServerMetaData metaData)
           
 
Method Summary
 void addDependsOnMe(ServiceImplementation implementation)
          Add a service depending on this one.
 void create()
          Create.
 void create(ServerObjectID id)
           
 void destroy()
          Destroy.
 void destroy(ServerObjectID id)
           
 Application getApplication(java.lang.String name)
           
 java.util.Collection getApplications()
           
 Portal getDefaultPortal()
           
 ServerManager getManager()
           
 ServerObjectMetaData getMetaData()
          Return the meta data for that object.
 ServerObject getObject(ServerObjectID id)
          Locate an object
 Portal getPortal(java.lang.String name)
           
 java.util.Collection getPortals()
           
 PortalServer getServer()
          Return the container this object belongs to.
 javax.servlet.ServletContext getServletContext()
           
 java.lang.Object invoke(Invocation invocation)
          Invoke on this component.
 boolean isStarted(ServerObject object)
           
 void removeDependsOnMe(ServiceImplementation implementation)
          Remove a service depending on this one.
 void setManager(ServerManager manager)
           
 void start(ServerObjectID id)
           
 void stop(ServerObjectID id)
           
 
Methods inherited from class org.jboss.portal.server.ServerObject
addIDependOn, addPlugin, createContext, createURL, getID, getName, getPlugin, getPluginKeySet, removeIDependOn, 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
 

Constructor Detail

PortalServer

public PortalServer(PortalServerMetaData metaData)
Method Detail

create

public void create(ServerObjectID id)

start

public void start(ServerObjectID id)

stop

public void stop(ServerObjectID id)

destroy

public void destroy(ServerObjectID id)

getObject

public ServerObject getObject(ServerObjectID id)
Locate an object


getManager

public ServerManager getManager()

setManager

public void setManager(ServerManager manager)

getServer

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

Specified by:
getServer in class ServerObject

getMetaData

public ServerObjectMetaData getMetaData()
Description copied from class: ServerObject
Return the meta data for that object.

Specified by:
getMetaData in class ServerObject

getServletContext

public javax.servlet.ServletContext getServletContext()

getPortals

public java.util.Collection getPortals()

getPortal

public Portal getPortal(java.lang.String name)

getDefaultPortal

public Portal getDefaultPortal()

getApplication

public Application getApplication(java.lang.String name)

getApplications

public java.util.Collection getApplications()

create

public void create()
            throws java.lang.Exception
Description copied from interface: Service
Create.

Specified by:
create in interface Service
Overrides:
create in class ServerObject
Throws:
java.lang.Exception

destroy

public void destroy()
Description copied from interface: Service
Destroy.

Specified by:
destroy in interface Service
Overrides:
destroy in class ServerObject

isStarted

public boolean isStarted(ServerObject object)

invoke

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

Overrides:
invoke in class ServerObject

addDependsOnMe

public void addDependsOnMe(ServiceImplementation implementation)
Description copied from interface: Registration
Add a service depending on this one.

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

removeDependsOnMe

public void removeDependsOnMe(ServiceImplementation implementation)
Description copied from interface: Registration
Remove a service depending on this one.

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