Package org.smooks.engine
Class DefaultApplicationContext
- java.lang.Object
-
- org.smooks.engine.DefaultApplicationContext
-
- All Implemented Interfaces:
ApplicationContext
public class DefaultApplicationContext extends Object implements ApplicationContext
Standalone container execution context for Smooks. This context allows Smooks to be executed outside the likes of a Servlet Container.- Author:
- tfennelly
-
-
Method Summary
-
-
-
Method Detail
-
getResourceLocator
public ContainerResourceLocator getResourceLocator()
Description copied from interface:ApplicationContext
Get the container resource locator for the context.- Specified by:
getResourceLocator
in interfaceApplicationContext
- Returns:
- ContainerResourceLocator for the context.
-
setResourceLocator
public void setResourceLocator(ContainerResourceLocator resourceLocator)
Set the resource locator for this Smooks application context.- Parameters:
resourceLocator
- The Resource locator.
-
getRegistry
public Registry getRegistry()
Description copied from interface:ApplicationContext
Get the registry for from the container application context.- Specified by:
getRegistry
in interfaceApplicationContext
- Returns:
- Registry instance.
-
getProfileStore
public ProfileStore getProfileStore()
Get the ProfileStore in use within the Standalone Context.- Specified by:
getProfileStore
in interfaceApplicationContext
- Returns:
- The ProfileStore.
-
getBeanIdStore
public BeanIdStore getBeanIdStore()
Description copied from interface:ApplicationContext
Get the BeanIdStore in use within this Context- Specified by:
getBeanIdStore
in interfaceApplicationContext
- Returns:
- The BeanIdStore
-
addBeanContextLifecycleObserver
public void addBeanContextLifecycleObserver(BeanContextLifecycleObserver observer)
Description copied from interface:ApplicationContext
Registers a bean context observer. This observer instance will be automatically added to allBeanContext
instances.- Specified by:
addBeanContextLifecycleObserver
in interfaceApplicationContext
- Parameters:
observer
- The actual BeanObserver instance.
-
getBeanContextLifecycleObservers
public Collection<BeanContextLifecycleObserver> getBeanContextLifecycleObservers()
Description copied from interface:ApplicationContext
Get bean context observers. These observer instances will be automatically added to allBeanContext
instances.- Specified by:
getBeanContextLifecycleObservers
in interfaceApplicationContext
- Returns:
- The collection of BeanObserver instance.
- See Also:
ApplicationContext.addBeanContextLifecycleObserver(org.smooks.javabean.lifecycle.BeanContextLifecycleObserver)
-
setClassLoader
public void setClassLoader(ClassLoader classLoader)
-
getClassLoader
public ClassLoader getClassLoader()
Description copied from interface:ApplicationContext
Get theClassLoader
to be used by the associated Smooks instance- Specified by:
getClassLoader
in interfaceApplicationContext
- Returns:
- The ClassLoader.
-
setContentDeliveryRuntimeFactory
public void setContentDeliveryRuntimeFactory(ContentDeliveryRuntimeFactory contentDeliveryRuntimeFactory)
-
getContentDeliveryRuntimeFactory
public ContentDeliveryRuntimeFactory getContentDeliveryRuntimeFactory()
- Specified by:
getContentDeliveryRuntimeFactory
in interfaceApplicationContext
-
getResourceConfigLoader
public ResourceConfigLoader getResourceConfigLoader()
- Specified by:
getResourceConfigLoader
in interfaceApplicationContext
-
setResourceConfigLoader
public void setResourceConfigLoader(ResourceConfigLoader resourceConfigLoader)
-
getReaderPoolFactory
public ReaderPoolFactory getReaderPoolFactory()
- Specified by:
getReaderPoolFactory
in interfaceApplicationContext
-
setReaderPoolFactory
public void setReaderPoolFactory(ReaderPoolFactory readerPoolFactory)
-
-