|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rhi.architecture.resource.ResourceContext
The ResourceContext class is a pseudo InitialContext. It is responsible for servicing lookups from the application classes to a set of the ResourceFactories. It creates & initializes the Factories during application startup, and call the Factory cleanup methods during application shutdown.
Constructor Summary | |
ResourceContext()
Default Constructor |
Method Summary | |
void |
cleanup()
Perform whatever cleanup is required of the underlying object.. |
void |
init(java.util.Properties p)
Load the configured ResourceFactories. |
java.lang.Object |
lookup(java.lang.Object name)
Lookup a resource by name. |
void |
register(java.lang.Object name,
Resource resource)
Manually register a resource w/ the ResourceContext object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResourceContext()
Method Detail |
public void init(java.util.Properties p) throws InitializationException
p
-
InitializationException
public void register(java.lang.Object name, Resource resource)
name
- name by which this resource will be known. Similar
to the JNDI name for an object in J2EE land.resource
- Resource to be managed by the Context object.public java.lang.Object lookup(java.lang.Object name)
name
-
public void cleanup()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |