public static class DetachedContentRuntimeRepositoryManager.Builder extends Object
| Constructor and Description |
|---|
Builder(IProductDataProviderFactory productDataProviderFactory)
The only mandatory parameter is the
IProductDataProviderFactory. |
| Modifier and Type | Method and Description |
|---|---|
IRuntimeRepositoryManager |
build()
This method builds a
DetachedContentRuntimeRepositoryManager. |
DetachedContentRuntimeRepositoryManager.Builder |
setCacheFactory(ICacheFactory cacheFactory)
Optionally you could specify a
ICacheFactory to use your own cache
implementation. |
DetachedContentRuntimeRepositoryManager.Builder |
setClassLoader(ClassLoader classLoader)
The
ClassLoader to instantiate the classes. |
DetachedContentRuntimeRepositoryManager.Builder |
setFormulaEvaluatorFactory(IFormulaEvaluatorFactory formulaEvaluatorFactory)
An optional
IFormulaEvaluatorFactory to create IFormulaEvaluators. |
DetachedContentRuntimeRepositoryManager.Builder |
setRepositoryName(String name)
The optional repository name.
|
public Builder(IProductDataProviderFactory productDataProviderFactory)
IProductDataProviderFactory. It is used to
create the IProductDataProviders.productDataProviderFactory - The builder to create IProductDataProviderspublic DetachedContentRuntimeRepositoryManager.Builder setRepositoryName(String name)
String "" is
usedname - the name of the repositoriespublic DetachedContentRuntimeRepositoryManager.Builder setClassLoader(ClassLoader classLoader)
ClassLoader to instantiate the classes. If you do not specify a
ClassLoader the Thread.getContextClassLoader() of
Thread.currentThread() is used.classLoader - The ClassLoader to instantiate the classespublic DetachedContentRuntimeRepositoryManager.Builder setFormulaEvaluatorFactory(IFormulaEvaluatorFactory formulaEvaluatorFactory)
IFormulaEvaluatorFactory to create IFormulaEvaluators. If you
do not set the IFormulaEvaluatorFactory the repository tries to load the
generated subclasses of product components containing the compiled formula. This would
not work if you want to change product data while application is running.formulaEvaluatorFactory - IFormulaEvaluatorFactory to create
IFormulaEvaluatorspublic DetachedContentRuntimeRepositoryManager.Builder setCacheFactory(ICacheFactory cacheFactory)
ICacheFactory to use your own cache
implementation. If you do not set a ICacheFactory the DefaultCacheFactory
is used.cacheFactory - The cacheFactory to set.public IRuntimeRepositoryManager build()
DetachedContentRuntimeRepositoryManager. All the values set
in the builder are used to create the manager and the
DetachedContentRuntimeRepositorysDetachedContentRuntimeRepositoryManagerCopyright © 2018. All rights reserved.