Package org.smooks.api
Interface ApplicationContextBuilder
-
- All Known Implementing Classes:
DefaultApplicationContextBuilder
@ThreadSafe public interface ApplicationContextBuilderConstructs anApplicationContext.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApplicationContextbuild()ApplicationContextBuilderwithClassLoader(ClassLoader classLoader)Sets the class loader for the application context.ApplicationContextBuilderwithContentDeliveryRuntimeFactory(ContentDeliveryRuntimeFactory contentDeliveryRuntimeFactory)Sets the content delivery runtime factory for the application context.ApplicationContextBuilderwithReaderPoolFactory(ReaderPoolFactory readerPoolFactory)Sets reader pool factory for the application context.ApplicationContextBuilderwithRegistry(Registry registry)Sets the registry for the application context.ApplicationContextBuilderwithResourceConfigLoader(ResourceConfigLoader resourceConfigLoader)Sets the resource config loader for the application context.ApplicationContextBuilderwithResourceLocator(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
thiswithclassLoaderset 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
thiswithregistryset 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
thiswithcontentDeliveryRuntimeFactoryset 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
thiswithresourceLocatorset 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
thiswithresourceConfigLoaderset 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
thiswithreaderPoolFactoryset to the given value
-
build
ApplicationContext build()
- Returns:
- a new application context
-
-