@Service public class PropertyFileServiceImpl extends Object implements PropertyFileService
DEFAULT_INSTANCE_NAME, DEFAULT_TYPE_NAME| Constructor and Description |
|---|
PropertyFileServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyFileBean(PropertyFileBean propertyFileBean)
This is a utility method that will add the given
PropertyFileBean
to the Hub for use in configuring this service |
PropertyFileHandle |
createPropertyHandleOfAnyType()
Creates a PropertyFileHandle for reading an HK2 property file.
|
PropertyFileHandle |
createPropertyHandleOfAnyType(String defaultTypeName,
String defaultInstanceName)
Creates a PropertyFileHandle for reading an HK2 property file.
|
PropertyFileHandle |
createPropertyHandleOfSpecificType(String specificTypeName)
Creates a PropertyFileHandle for reading an HK2 property file
that has a specific type name.
|
PropertyFileHandle |
createPropertyHandleOfSpecificType(String specificTypeName,
String defaultInstanceName)
Creates a PropertyFileHandle for reading an HK2 property file
that has a specific type name.
|
void |
removePropertyFileBean()
This is a utility method that will remove the
PropertyFileBean
from the Hub if it is present |
public PropertyFileHandle createPropertyHandleOfSpecificType(String specificTypeName, String defaultInstanceName)
PropertyFileServicecreatePropertyHandleOfSpecificType in interface PropertyFileServicespecificTypeName - The non-null, non-empty string specific type
name. All instances created or modified with this PropertyFileHandle
will be in this typedefaultInstanceName - The default name to give to instances of
this type if the instance name cannot be determined. If null or
the empty string then the default default instance of DEFAULT will
be usedpublic PropertyFileHandle createPropertyHandleOfSpecificType(String specificTypeName)
PropertyFileServicecreatePropertyHandleOfSpecificType in interface PropertyFileServicespecificTypeName - The non-null, non-empty string specific type
name. All instances created or modified with this PropertyFileHandle
will be in this typepublic PropertyFileHandle createPropertyHandleOfAnyType(String defaultTypeName, String defaultInstanceName)
PropertyFileServicecreatePropertyHandleOfAnyType in interface PropertyFileServicedefaultTypeName - The default type name that will be used
if a type name could not be determined. If null or empty the
default type name of DEFAULT_TYPE will be useddefaultInstanceName - The default name to give to instances of
this type if the instance name cannot be determined. If null or
the empty string then the default default instance of DEFAULT will
be usedpublic PropertyFileHandle createPropertyHandleOfAnyType()
PropertyFileServicecreatePropertyHandleOfAnyType in interface PropertyFileServicepublic void addPropertyFileBean(PropertyFileBean propertyFileBean)
PropertyFileServicePropertyFileBean
to the Hub for use in configuring this serviceaddPropertyFileBean in interface PropertyFileServicepropertyFileBean - The non-null property file bean that should
either be added to the Hub or be used to modify the existing
bean in the hubpublic void removePropertyFileBean()
PropertyFileServicePropertyFileBean
from the Hub if it is presentremovePropertyFileBean in interface PropertyFileServiceCopyright © 2009-2016 Oracle Corporation. All Rights Reserved.