public interface Environment
ResourceHandler will handle the requests sent to the specified
endpoint.| Modifier and Type | Method and Description |
|---|---|
LifecycleEnvironment |
lifecycle()
Retrieve the Application's
LifecycleEnvironment. |
void |
publishResource(Name<?> resourceName,
Class<? extends ResourceHandler> handlerClass,
String path)
Publish a resource managed by a particular handler class at a given path.
|
void publishResource(Name<?> resourceName, Class<? extends ResourceHandler> handlerClass, String path)
resourceName - The name of the resource that is to be published.handlerClass - The class of the handler that will manage the resource
behind the endpoint.path - The path used to publish the resource. The path must end with
a single '/'.LifecycleEnvironment lifecycle()
LifecycleEnvironment.LifecycleEnvironment.
Copyright (C) 2014, Center for Open Middleware