| |
|
| java.lang.Object org.w3c.tools.resources.ResourceContext
ResourceContext | public class ResourceContext (Code) | | The resource context.
|
debug | public static boolean debug(Code) | | debug flag
|
ResourceContext | public ResourceContext(ContainerResource container)(Code) | | Create a ResourceContext from a container.
Parameters: container - The resource container. |
ResourceContext | public ResourceContext(ResourceReference rr_container)(Code) | | Create a ResourceContext from a container ResourceReference.
Parameters: container - The resource reference of the container. Must be an instance of ContainerResource. |
ResourceContext | public ResourceContext(ResourceContext parent)(Code) | | Create a ResourceContext from the parent context.
Parameters: parent - The parent resource context. |
ResourceContext | public ResourceContext(ResourceSpace space, ServerInterface server)(Code) | | Create a ResourceContext.
Parameters: space - The ResourceSpace. Parameters: server - The server. |
ResourceContext | public ResourceContext(ServerInterface server)(Code) | | Create a ResourceContext.
Parameters: server - The server. |
getContainer | public ResourceReference getContainer()(Code) | | Get the container of the resource.
A ResourceReference instance. |
getModule | public Object getModule(String name, boolean inherited)(Code) | | Lookup a module within that resource context.
Parameters: name - Name of the module to look for. Parameters: inherited - Also look within the contexts hierarchy for an inherited module having that name. |
getModule | public Object getModule(String name)(Code) | | Lookup a module within that context, and up the hierarchy of contexts.
Parameters: name - The module's name. An object implementing that module. |
getParent | public ResourceContext getParent()(Code) | | Get that context's ancestor.
A ResourceContext instance, or null. |
getResourceReference | public ResourceReference getResourceReference()(Code) | | Get the ResourceReference of the resource.
a ResourceReference instance. |
getServer | public ServerInterface getServer()(Code) | | Get the server this context is attached to.
An ServerInterface instance (guaranteed not to be null.) |
getSpace | public ResourceSpace getSpace()(Code) | | Get our Resource Space.
A ResourceSpace instance. |
registerModule | public synchronized void registerModule(String name, Object impl)(Code) | | Register a module within that resource context.
Parameters: name - The module's name. Parameters: impl - The module's implementation. |
setResourceReference | public void setResourceReference(ResourceReference reference)(Code) | | Set the ResourceReference of the resource.
Parameters: reference - The ResourceReference to set. |
setSpace | public void setSpace(ResourceSpace space)(Code) | | Set the Resource Space.
Parameters: space - Our Resource Space. |
|
|
|