public class MockApplicationContext extends Object implements ApplicationContext
| Modifier and Type | Field and Description | 
|---|---|
| MockContainerResourceLocator | containerResourceLocator | 
| ProfileStore | profileStore | 
| Constructor and Description | 
|---|
| MockApplicationContext() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addBeanContextLifecycleObserver(BeanContextLifecycleObserver observer)Registers a bean context observer. | 
| Object | getAttribute(Object key)Returns the object bound with the specified name in this  BoundAttributeStoreimplementation, or null if no object is bound under the name. | 
| Map<Object,Object> | getAttributes()Returns the Map of attributes bound in this  BoundAttributeStore | 
| Collection<BeanContextLifecycleObserver> | getBeanContextLifecycleObservers()Get bean context observers. | 
| BeanIdStore | getBeanIdStore()Get the BeanIdStore in use within this Context | 
| ClassLoader | getClassLoader()Get the  ClassLoaderto be used by the associated Smooks instance | 
| ProfileStore | getProfileStore()Get the ProfileStore in use within this 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  BoundAttributeStoreimplementation. | 
| void | setAttribute(Object key,
            Object value)Binds an object to this  BoundAttributeStoreimplementation, using the name
 specified. | 
| void | setResourceLocator(ContainerResourceLocator resourceLocator)Set the resource locator for this Smooks application context. | 
public MockContainerResourceLocator containerResourceLocator
public ProfileStore profileStore
public ContainerResourceLocator getResourceLocator()
ApplicationContextgetResourceLocator in interface ApplicationContextpublic 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 SmooksResourceConfigurationStore getStore()
ApplicationContextgetStore in interface ApplicationContextpublic ProfileStore getProfileStore()
ApplicationContextgetProfileStore in interface ApplicationContextpublic void setResourceLocator(ContainerResourceLocator resourceLocator)
ApplicationContextsetResourceLocator in interface ApplicationContextresourceLocator - The Resource locator.public Map<Object,Object> getAttributes()
BoundAttributeStoreBoundAttributeStoregetAttributes in interface BoundAttributeStoreBoundAttributeStorepublic BeanIdStore getBeanIdStore()
ApplicationContextgetBeanIdStore in interface ApplicationContextpublic void addBeanContextLifecycleObserver(BeanContextLifecycleObserver observer)
ApplicationContextBeanContext
 instances.addBeanContextLifecycleObserver in interface ApplicationContextobserver - The actual BeanObserver instance.public Collection<BeanContextLifecycleObserver> getBeanContextLifecycleObservers()
ApplicationContextBeanContext
 instances.getBeanContextLifecycleObservers in interface ApplicationContextApplicationContext.addBeanContextLifecycleObserver(org.milyn.javabean.lifecycle.BeanContextLifecycleObserver)public ClassLoader getClassLoader()
ApplicationContextClassLoader to be used by the associated Smooks instancegetClassLoader in interface ApplicationContextCopyright © 2020. All rights reserved.