Package org.smooks.api
Interface ApplicationContextBuilder
-
- All Known Implementing Classes:
DefaultApplicationContextBuilder
@ThreadSafe public interface ApplicationContextBuilder
Constructs anApplicationContext
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApplicationContext
build()
ApplicationContextBuilder
withClassLoader(ClassLoader classLoader)
Sets the class loader for the application context.ApplicationContextBuilder
withContentDeliveryRuntimeFactory(ContentDeliveryRuntimeFactory contentDeliveryRuntimeFactory)
Sets the content delivery runtime factory for the application context.ApplicationContextBuilder
withReaderPoolFactory(ReaderPoolFactory readerPoolFactory)
Sets reader pool factory for the application context.ApplicationContextBuilder
withRegistry(Registry registry)
Sets the registry for the application context.ApplicationContextBuilder
withResourceConfigLoader(ResourceConfigLoader resourceConfigLoader)
Sets the resource config loader for the application context.ApplicationContextBuilder
withResourceLocator(ContainerResourceLocator resourceLocator)
Sets the resource locator for the application context.
-
-
-
Method Detail
-
withClassLoader
ApplicationContextBuilder withClassLoader(ClassLoader classLoader)
Sets the class loader for the application context.- Parameters:
classLoader
- class loader to use for the application context- Returns:
- a shallow copy of
this
withclassLoader
set to the given value
-
withRegistry
ApplicationContextBuilder withRegistry(Registry registry)
Sets the registry for the application context.- Parameters:
registry
- registry to use for the application context- Returns:
- a shallow copy of
this
withregistry
set to the given value
-
withContentDeliveryRuntimeFactory
ApplicationContextBuilder withContentDeliveryRuntimeFactory(ContentDeliveryRuntimeFactory contentDeliveryRuntimeFactory)
Sets the content delivery runtime factory for the application context.- Parameters:
contentDeliveryRuntimeFactory
- content delivery runtime factory to use for the application context- Returns:
- a shallow copy of
this
withcontentDeliveryRuntimeFactory
set to the given value
-
withResourceLocator
ApplicationContextBuilder withResourceLocator(ContainerResourceLocator resourceLocator)
Sets the resource locator for the application context.- Parameters:
resourceLocator
- resource locator to use for the application context- Returns:
- a shallow copy of
this
withresourceLocator
set to the given value
-
withResourceConfigLoader
ApplicationContextBuilder withResourceConfigLoader(ResourceConfigLoader resourceConfigLoader)
Sets the resource config loader for the application context.- Parameters:
resourceConfigLoader
- resource config loader to use for the application context- Returns:
- a shallow copy of
this
withresourceConfigLoader
set to the given value
-
withReaderPoolFactory
ApplicationContextBuilder withReaderPoolFactory(ReaderPoolFactory readerPoolFactory)
Sets reader pool factory for the application context.- Parameters:
readerPoolFactory
- reader pool factory to use for the application context- Returns:
- a shallow copy of
this
withreaderPoolFactory
set to the given value
-
build
ApplicationContext build()
- Returns:
- a new application context
-
-