|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.container.standalone.StandaloneApplicationContext
public class StandaloneApplicationContext
Standalone container execution context for Smooks.
This context allows Smooks to be executed outside the likes of a Servlet Container.
| Constructor Summary | |
|---|---|
StandaloneApplicationContext()
Public constructor. |
|
| Method Summary | |
|---|---|
Object |
getAttribute(Object key)
Returns the object bound with the specified name in this BoundAttributeStore
implementation, or null if no object is bound under the name. |
Map |
getAttributes()
Returns the Map of attributes bound in this BoundAttributeStore |
ProfileStore |
getProfileStore()
Get the ProfileStore in use within the Standalone Context. |
ContainerResourceLocator |
getResourceLocator()
Get the container resource locator for the context. |
SmooksResourceConfigurationStore |
getStore()
Get the Store for from the container application context. |
void |
removeAttribute(Object key)
Removes the object bound with the specified name from this BoundAttributeStore
implementation. |
void |
setAttribute(Object key,
Object value)
Binds an object to this BoundAttributeStore implementation, using the name
specified. |
void |
setResourceLocator(ContainerResourceLocator resourceLocator)
Set the resource locator for this Smooks application context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandaloneApplicationContext()
| Method Detail |
|---|
public void setAttribute(Object key,
Object value)
BoundAttributeStoreBoundAttributeStore implementation, using the name
specified. If an object of the same name is already bound, the object
is replaced.
setAttribute in interface BoundAttributeStorekey - The key against which the object is bound; cannot be null.value - The object to be bound; cannot be null.public Object getAttribute(Object key)
BoundAttributeStoreBoundAttributeStore
implementation, or null if no object is bound under the name.
getAttribute in interface BoundAttributeStorekey - The key against which the object is bound; cannot be null.
BoundAttributeStore
implementation, or null if no object is bound under the name.public void removeAttribute(Object key)
BoundAttributeStoreBoundAttributeStore
implementation. If the BoundAttributeStore implementation does
not have an object bound with the specified name, this method does nothing.
removeAttribute in interface BoundAttributeStorekey - The key against which the object is bound; cannot be null.public ContainerResourceLocator getResourceLocator()
ApplicationContext
getResourceLocator in interface ApplicationContextpublic void setResourceLocator(ContainerResourceLocator resourceLocator)
ApplicationContext
setResourceLocator in interface ApplicationContextresourceLocator - The Resource locator.public SmooksResourceConfigurationStore getStore()
ApplicationContext
getStore in interface ApplicationContextpublic ProfileStore getProfileStore()
getProfileStore in interface ApplicationContextpublic Map getAttributes()
BoundAttributeStoreBoundAttributeStore
getAttributes in interface BoundAttributeStoreBoundAttributeStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||