Package org.smooks.api
Interface ApplicationContext
-
- All Known Implementing Classes:
DefaultApplicationContext
@ThreadSafe public interface ApplicationContext
Application-scoped service locator.Clients obtain references to application services like
Registry
from theApplicationContext
. A Smooks resource obtains a reference to anApplicationContext
by annotating anApplicationContext
field in the resource class withInject
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addBeanContextLifecycleObserver(BeanContextLifecycleObserver observer)
Registers a bean context observer.Collection<BeanContextLifecycleObserver>
getBeanContextLifecycleObservers()
Get bean context observers.BeanIdStore
getBeanIdStore()
Get the BeanIdStore in use within this ContextClassLoader
getClassLoader()
Get theClassLoader
to be used by the associated Smooks instanceContentDeliveryRuntimeFactory
getContentDeliveryRuntimeFactory()
ProfileStore
getProfileStore()
Get the ProfileStore in use within this Context.ReaderPoolFactory
getReaderPoolFactory()
Registry
getRegistry()
Get the registry for from the container application context.ResourceConfigLoader
getResourceConfigLoader()
ContainerResourceLocator
getResourceLocator()
Get the container resource locator for the context.
-
-
-
Method Detail
-
getResourceLocator
ContainerResourceLocator getResourceLocator()
Get the container resource locator for the context.- Returns:
- ContainerResourceLocator for the context.
-
getRegistry
Registry getRegistry()
Get the registry for from the container application context.- Returns:
- Registry instance.
-
getProfileStore
ProfileStore getProfileStore()
Get the ProfileStore in use within this Context.- Returns:
- The ProfileStore.
-
getBeanIdStore
BeanIdStore getBeanIdStore()
Get the BeanIdStore in use within this Context- Returns:
- The BeanIdStore
-
addBeanContextLifecycleObserver
void addBeanContextLifecycleObserver(BeanContextLifecycleObserver observer)
Registers a bean context observer. This observer instance will be automatically added to allBeanContext
instances.- Parameters:
observer
- The actual BeanObserver instance.
-
getBeanContextLifecycleObservers
Collection<BeanContextLifecycleObserver> getBeanContextLifecycleObservers()
Get bean context observers. These observer instances will be automatically added to allBeanContext
instances.- Returns:
- The collection of BeanObserver instance.
- See Also:
addBeanContextLifecycleObserver(org.smooks.javabean.lifecycle.BeanContextLifecycleObserver)
-
getClassLoader
ClassLoader getClassLoader()
Get theClassLoader
to be used by the associated Smooks instance- Returns:
- The ClassLoader.
-
getContentDeliveryRuntimeFactory
ContentDeliveryRuntimeFactory getContentDeliveryRuntimeFactory()
-
getResourceConfigLoader
ResourceConfigLoader getResourceConfigLoader()
-
getReaderPoolFactory
ReaderPoolFactory getReaderPoolFactory()
-
-