|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Env
An instance of this interface provides an indirect hook into the container.
| Method Summary | |
|---|---|
void |
bind(String id,
Object o)
|
org.sapia.util.xml.confix.ObjectFactoryIF |
getObjectFactory()
Returns the object factory that is used to create objects from XML configuration files. |
org.sapia.resource.ResourceHandler |
getResourceHandlerFor(String protocol)
|
SotoResourceHandlerChain |
getResourceHandlers()
|
Settings |
getSettings()
|
Object |
include(String uri,
Map params)
Returns the object representation of the given resource, using the Confix API. |
Object |
include(String uri,
org.sapia.util.text.TemplateContextIF params)
Returns the object representation of the given resource, using the Confix API. |
Object |
lookup(Class instanceOf)
|
List |
lookup(ServiceSelector selector,
boolean returnMetadata)
|
Object |
lookup(String serviceId)
|
Object |
resolveRef(String id)
|
org.sapia.resource.Resource |
resolveResource(String uri)
Resolves the resource corresponding to the given URI. |
InputStream |
resolveStream(String uri)
Resolves the resource corresponding to the given URI. |
| Method Detail |
|---|
Object lookup(String serviceId)
throws NotFoundException
NotFoundExceptionSotoContainer.lookup(String)
Object lookup(Class instanceOf)
throws NotFoundException
NotFoundExceptionSotoContainer.lookup(Class)
List lookup(ServiceSelector selector,
boolean returnMetadata)
SotoContainer.lookup(ServiceSelector, boolean)SotoResourceHandlerChain getResourceHandlers()
SotoContainer.getResourceHandlers()org.sapia.resource.ResourceHandler getResourceHandlerFor(String protocol)
SotoContainer.getResourceHandlerFor(String)
InputStream resolveStream(String uri)
throws IOException
uri - a URI.
InputStream corresponding to the given resource
path.
IOException
org.sapia.resource.Resource resolveResource(String uri)
throws IOException
uri - a URI.
Resource corresponding to the given uri.
IOExceptionorg.sapia.util.xml.confix.ObjectFactoryIF getObjectFactory()
ObjectFactoryIF.
Object include(String uri,
Map params)
throws org.sapia.util.xml.confix.ConfigurationException
org.sapia.util.xml.confix.ConfigurationException
Object include(String uri,
org.sapia.util.text.TemplateContextIF params)
throws org.sapia.util.xml.confix.ConfigurationException
org.sapia.util.xml.confix.ConfigurationException
void bind(String id,
Object o)
SotoContainer.bind(java.lang.String, java.lang.Object)
Object resolveRef(String id)
throws NotFoundException
NotFoundExceptionSotoContainer.resolveRef(java.lang.String)Settings getSettings()
Settings.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||