Package org.smooks.engine
Class DefaultApplicationContextBuilder
- java.lang.Object
-
- org.smooks.engine.DefaultApplicationContextBuilder
-
- All Implemented Interfaces:
org.smooks.api.ApplicationContextBuilder
public class DefaultApplicationContextBuilder extends Object implements org.smooks.api.ApplicationContextBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected org.smooks.api.bean.context.BeanIdStorebeanIdStoreprotected ClassLoaderclassLoaderprotected org.smooks.api.delivery.ContentDeliveryRuntimeFactorycontentDeliveryRuntimeFactoryprotected org.smooks.api.FilterSettingsfilterSettingsprotected org.smooks.api.delivery.ReaderPoolFactoryreaderPoolFactoryprotected org.smooks.api.Registryregistryprotected org.smooks.api.resource.config.loader.ResourceConfigLoaderresourceConfigLoaderprotected org.smooks.api.resource.ContainerResourceLocatorresourceLocatorprotected booleansystemResources
-
Constructor Summary
Constructors Modifier Constructor Description DefaultApplicationContextBuilder()protectedDefaultApplicationContextBuilder(boolean systemResources, ClassLoader classLoader, org.smooks.api.Registry registry, org.smooks.api.delivery.ContentDeliveryRuntimeFactory contentDeliveryRuntimeFactory, org.smooks.api.resource.ContainerResourceLocator resourceLocator, org.smooks.api.resource.config.loader.ResourceConfigLoader resourceConfigLoader, org.smooks.api.delivery.ReaderPoolFactory readerPoolFactory, org.smooks.api.bean.context.BeanIdStore beanIdStore, org.smooks.api.FilterSettings filterSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplySettings(org.smooks.api.FilterSettings filterSettings, org.smooks.api.Registry registry)org.smooks.api.ApplicationContextbuild()protected voidinitRegistry(org.smooks.api.ApplicationContext applicationContext, org.smooks.api.Registry registry)protected voidregisterSystemContentHandlerFactories(org.smooks.api.Registry registry)protected voidregisterSystemResources(org.smooks.api.Registry registry, org.smooks.api.ApplicationContext applicationContext)protected voidsetParameter(String name, Object value, org.smooks.api.Registry registry)DefaultApplicationContextBuilderwithBeanIdStore(org.smooks.api.bean.context.BeanIdStore beanIdStore)DefaultApplicationContextBuilderwithClassLoader(ClassLoader classLoader)DefaultApplicationContextBuilderwithContentDeliveryRuntimeFactory(org.smooks.api.delivery.ContentDeliveryRuntimeFactory contentDeliveryRuntimeFactory)org.smooks.api.ApplicationContextBuilderwithFilterSettings(org.smooks.api.FilterSettings filterSettings)DefaultApplicationContextBuilderwithReaderPoolFactory(org.smooks.api.delivery.ReaderPoolFactory readerPoolFactory)DefaultApplicationContextBuilderwithRegistry(org.smooks.api.Registry registry)DefaultApplicationContextBuilderwithResourceConfigLoader(org.smooks.api.resource.config.loader.ResourceConfigLoader resourceConfigLoader)DefaultApplicationContextBuilderwithResourceLocator(org.smooks.api.resource.ContainerResourceLocator resourceLocator)DefaultApplicationContextBuilderwithSystemResources(boolean systemResources)
-
-
-
Field Detail
-
systemResources
protected boolean systemResources
-
beanIdStore
protected org.smooks.api.bean.context.BeanIdStore beanIdStore
-
classLoader
protected ClassLoader classLoader
-
registry
protected org.smooks.api.Registry registry
-
contentDeliveryRuntimeFactory
protected org.smooks.api.delivery.ContentDeliveryRuntimeFactory contentDeliveryRuntimeFactory
-
resourceLocator
protected org.smooks.api.resource.ContainerResourceLocator resourceLocator
-
resourceConfigLoader
protected org.smooks.api.resource.config.loader.ResourceConfigLoader resourceConfigLoader
-
readerPoolFactory
protected org.smooks.api.delivery.ReaderPoolFactory readerPoolFactory
-
filterSettings
protected org.smooks.api.FilterSettings filterSettings
-
-
Constructor Detail
-
DefaultApplicationContextBuilder
public DefaultApplicationContextBuilder()
-
DefaultApplicationContextBuilder
protected DefaultApplicationContextBuilder(boolean systemResources, ClassLoader classLoader, org.smooks.api.Registry registry, org.smooks.api.delivery.ContentDeliveryRuntimeFactory contentDeliveryRuntimeFactory, org.smooks.api.resource.ContainerResourceLocator resourceLocator, org.smooks.api.resource.config.loader.ResourceConfigLoader resourceConfigLoader, org.smooks.api.delivery.ReaderPoolFactory readerPoolFactory, org.smooks.api.bean.context.BeanIdStore beanIdStore, org.smooks.api.FilterSettings filterSettings)
-
-
Method Detail
-
withClassLoader
public DefaultApplicationContextBuilder withClassLoader(ClassLoader classLoader)
- Specified by:
withClassLoaderin interfaceorg.smooks.api.ApplicationContextBuilder
-
withSystemResources
public DefaultApplicationContextBuilder withSystemResources(boolean systemResources)
-
withRegistry
public DefaultApplicationContextBuilder withRegistry(org.smooks.api.Registry registry)
- Specified by:
withRegistryin interfaceorg.smooks.api.ApplicationContextBuilder
-
withContentDeliveryRuntimeFactory
public DefaultApplicationContextBuilder withContentDeliveryRuntimeFactory(org.smooks.api.delivery.ContentDeliveryRuntimeFactory contentDeliveryRuntimeFactory)
- Specified by:
withContentDeliveryRuntimeFactoryin interfaceorg.smooks.api.ApplicationContextBuilder
-
withResourceLocator
public DefaultApplicationContextBuilder withResourceLocator(org.smooks.api.resource.ContainerResourceLocator resourceLocator)
- Specified by:
withResourceLocatorin interfaceorg.smooks.api.ApplicationContextBuilder
-
withResourceConfigLoader
public DefaultApplicationContextBuilder withResourceConfigLoader(org.smooks.api.resource.config.loader.ResourceConfigLoader resourceConfigLoader)
- Specified by:
withResourceConfigLoaderin interfaceorg.smooks.api.ApplicationContextBuilder
-
withReaderPoolFactory
public DefaultApplicationContextBuilder withReaderPoolFactory(org.smooks.api.delivery.ReaderPoolFactory readerPoolFactory)
- Specified by:
withReaderPoolFactoryin interfaceorg.smooks.api.ApplicationContextBuilder
-
withBeanIdStore
public DefaultApplicationContextBuilder withBeanIdStore(org.smooks.api.bean.context.BeanIdStore beanIdStore)
- Specified by:
withBeanIdStorein interfaceorg.smooks.api.ApplicationContextBuilder
-
withFilterSettings
public org.smooks.api.ApplicationContextBuilder withFilterSettings(org.smooks.api.FilterSettings filterSettings)
- Specified by:
withFilterSettingsin interfaceorg.smooks.api.ApplicationContextBuilder
-
build
public org.smooks.api.ApplicationContext build()
- Specified by:
buildin interfaceorg.smooks.api.ApplicationContextBuilder
-
applySettings
protected void applySettings(org.smooks.api.FilterSettings filterSettings, org.smooks.api.Registry registry)
-
initRegistry
protected void initRegistry(org.smooks.api.ApplicationContext applicationContext, org.smooks.api.Registry registry)
-
registerSystemContentHandlerFactories
protected void registerSystemContentHandlerFactories(org.smooks.api.Registry registry)
-
registerSystemResources
protected void registerSystemResources(org.smooks.api.Registry registry, org.smooks.api.ApplicationContext applicationContext)
-
-