|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface of the basic application context. An application context provides a runtime environment controlling processes, threads and security of application services. All JWeb components actually are built on top of these services.
| Field Summary | |
static int |
CONTEXT_STATUS_CREATED
Service is created but not configured. |
static int |
CONTEXT_STATUS_NOT_AVAILABLE
Service is not available. |
static int |
CONTEXT_STATUS_RUNNING
Service is up and running. |
static int |
CONTEXT_STATUS_STARTING
Service is in starting process |
static int |
CONTEXT_STATUS_STOPPED
Service is stopped and cannot be used |
static int |
CONTEXT_STATUS_STOPPING
Service is in stopping process |
static java.lang.String |
ELEM_CONTEXT
XML element name |
| Method Summary | |
void |
addService(org.jdom.Element config,
ITicket ticket)
Add dynamically a new service. |
void |
addService(IService service,
java.lang.String serviceName,
ITicket ticket)
Add dynamically a new service. |
void |
checkAccess(java.lang.String object,
int level,
ITicket ticket)
Direct access to the security service for right authorization. |
IService |
connectService(org.jdom.Element tree,
ITicket ticket)
This method is used for reusal of the service intitialization and reference code. |
ILogWriter |
getLog()
Returns the context's default log writer object. |
java.lang.String |
getName()
Returns the name of this context |
IReferenceResolver |
getResolver()
|
IService |
getService(java.lang.String serviceName,
ITicket ticket)
Return the service with the given name. |
int |
getStatus()
Returns the current status of the context |
ITicket |
login(java.lang.String user,
java.lang.String pwd)
Login to this context. |
ILogWriter |
makeLog(org.jdom.Element tree,
ITicket ticket)
This method is used for reusal of the log intitialization and reference code. |
void |
removeService(java.lang.String serviceName,
ITicket ticket)
Add dynamically a new service. |
void |
start(ITicket ticket)
|
void |
stop(ITicket ticket)
|
| Field Detail |
public static final java.lang.String ELEM_CONTEXT
public static final int CONTEXT_STATUS_NOT_AVAILABLE
public static final int CONTEXT_STATUS_CREATED
public static final int CONTEXT_STATUS_RUNNING
public static final int CONTEXT_STATUS_STOPPED
public static final int CONTEXT_STATUS_STARTING
public static final int CONTEXT_STATUS_STOPPING
| Method Detail |
public ITicket login(java.lang.String user,
java.lang.String pwd)
throws java.lang.SecurityException
user - The user id,pwd - The user passwordjava.lang.SecurityException - When access to the context was denied.public java.lang.String getName()
public IService getService(java.lang.String serviceName,
ITicket ticket)
throws java.lang.SecurityException
serviceName - The name of the service to returnThe - user ticketServiceNotFoundException - If the service could not be locatedjava.lang.SecurityException - If access was denied.public int getStatus()
public void start(ITicket ticket)
throws java.lang.SecurityException,
ServiceInitializationException,
ServiceRuntimeException
public void stop(ITicket ticket)
throws java.lang.SecurityException,
ServiceRuntimeException
public void addService(IService service,
java.lang.String serviceName,
ITicket ticket)
throws java.lang.SecurityException
service - The new serviceserviceName - The service name under which the service should registeredticket - The system user who must WRITE access to the factoryjava.lang.SecurityException - If access was denied or a service with
the same name is running yet
public void addService(org.jdom.Element config,
ITicket ticket)
throws java.lang.SecurityException
config - The service's XML configuration treeticket - The system user who must WRITE access to the factoryjava.lang.SecurityException - If access was denied or a service with
the same name is running yet
public void removeService(java.lang.String serviceName,
ITicket ticket)
throws java.lang.SecurityException,
ServiceNotFoundException
serviceName - The service name under which the service should registeredticket - The system user who must WRITE access to the factoryjava.lang.SecurityException - If access was denied or a service with
the same name is running yetServiceNotFoundException - If the service could not be found
public void checkAccess(java.lang.String object,
int level,
ITicket ticket)
throws java.lang.SecurityException
object - The objectlevel - The access levelticket - The user to access the objectpublic ILogWriter getLog()
public IService connectService(org.jdom.Element tree,
ITicket ticket)
throws java.lang.SecurityException
tree - The service or reference jdom treeticket - The system ticket
public ILogWriter makeLog(org.jdom.Element tree,
ITicket ticket)
throws java.lang.SecurityException,
ConfigurationException
tree - The log or reference jdom treelogName - The name of the log (when creating a new one)ticket - The system ticketpublic IReferenceResolver getResolver()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||