T
- : the type to be created by the factory.public class ConfigurableFactoryHelper<T> extends Object
Constructor and Description |
---|
ConfigurableFactoryHelper(String classPropertyName,
String defaultClassPropertyName)
creates the helper with the required parameters.
|
Modifier and Type | Method and Description |
---|---|
T |
getImplementation()
Creates a builder based on the given properties in the configuration or the default class property.
|
T |
getImplementation(boolean useCache)
Creates a builder based on the given properties in the configuration or the default class property.
|
T |
getImplementation(Map<String,Object> configParameters)
Creates a builder based on the given properties in the configuration or the default class property.
|
T |
getImplementation(Map<String,Object> hashMap,
boolean usecache) |
T |
getImplementation(Map<String,Object> configParameters,
boolean useCaching,
boolean silent)
Creates a builder based on the given properties in the configuration or the default class property.
|
List<T> |
getImplementations() |
List<T> |
getImplementations(boolean useCache) |
List<T> |
getImplementations(boolean useCache,
boolean silent) |
List<T> |
getImplementations(Map<String,Object> configParameters) |
List<T> |
getImplementations(Map<String,Object> configParameters,
boolean useCache) |
List<T> |
getImplementations(Map<String,Object> configParameters,
boolean useCache,
boolean silent) |
void |
invalidateCache() |
public ConfigurableFactoryHelper(String classPropertyName, String defaultClassPropertyName)
classPropertyName
- the property in the config that indicates the builder implementation class to usedefaultClassPropertyName
- the full classname of the default builder implementation to use ( if the property in the config is empty
)public T getImplementation() throws TechnicalConnectorException
TechnicalConnectorException
public T getImplementation(boolean useCache) throws TechnicalConnectorException
useCache
- boolean indicating if result must be cached or notTechnicalConnectorException
public T getImplementation(Map<String,Object> configParameters) throws TechnicalConnectorException
TechnicalConnectorException
public T getImplementation(Map<String,Object> hashMap, boolean usecache) throws TechnicalConnectorException
TechnicalConnectorException
public T getImplementation(Map<String,Object> configParameters, boolean useCaching, boolean silent) throws TechnicalConnectorException
TechnicalConnectorException
public List<T> getImplementations() throws TechnicalConnectorException
TechnicalConnectorException
public List<T> getImplementations(boolean useCache) throws TechnicalConnectorException
TechnicalConnectorException
public List<T> getImplementations(boolean useCache, boolean silent) throws TechnicalConnectorException
TechnicalConnectorException
public List<T> getImplementations(Map<String,Object> configParameters) throws TechnicalConnectorException
TechnicalConnectorException
public List<T> getImplementations(Map<String,Object> configParameters, boolean useCache) throws TechnicalConnectorException
TechnicalConnectorException
public List<T> getImplementations(Map<String,Object> configParameters, boolean useCache, boolean silent) throws TechnicalConnectorException
TechnicalConnectorException
public void invalidateCache()
Connector Packaging TRUSSMAKER 4.1.2 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.