public final class ServiceFactory extends Object
Modifier and Type | Method and Description |
---|---|
static Service |
createService(Enum<?> classNameKey,
String defaultClassName,
ConfigurationHolder configurationHolder,
String propertyPart)
This function creates, initializes and returns new service objects.
|
static Service |
createService(String classNameKey,
String defaultClassName,
ConfigurationHolder configurationHolder,
String propertyPart)
This function creates, initializes and returns new service objects.
|
public static Service createService(Enum<?> classNameKey, String defaultClassName, ConfigurationHolder configurationHolder, String propertyPart)
classNameKey
- The configuration key holding the service object class namedefaultClassName
- The default service object class name if the value was not found in the configurationconfigurationHolder
- The configuration holder used to provide the configuration to the servicepropertyPart
- The service property partpublic static Service createService(String classNameKey, String defaultClassName, ConfigurationHolder configurationHolder, String propertyPart)
classNameKey
- The configuration key holding the service object class namedefaultClassName
- The default service object class name if the value was not found in the configurationconfigurationHolder
- The configuration holder used to provide the configuration to the servicepropertyPart
- The service property partCopyright © 2009–2020 fax4j. All rights reserved.