|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faktorips.runtime.productdataprovider.DetachedContentRuntimeRepositoryManager.Builder
public static class DetachedContentRuntimeRepositoryManager.Builder
| Constructor Summary | |
|---|---|
DetachedContentRuntimeRepositoryManager.Builder(IProductDataProviderFactory productDataProviderFactory)
The only mandatory parameter is the IProductDataProviderFactory. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DetachedContentRuntimeRepositoryManager.Builder(IProductDataProviderFactory productDataProviderFactory)
IProductDataProviderFactory. It is used to
create the IProductDataProviders.
productDataProviderFactory - The builder to create IProductDataProviders| Method Detail |
|---|
public DetachedContentRuntimeRepositoryManager.Builder setRepositoryName(String name)
String "" is
used
name - 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
DetachedContentRuntimeRepositorys
DetachedContentRuntimeRepositoryManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||