@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)
PropertyFileService
createPropertyHandleOfSpecificType
in interface PropertyFileService
specificTypeName
- 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)
PropertyFileService
createPropertyHandleOfSpecificType
in interface PropertyFileService
specificTypeName
- 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)
PropertyFileService
createPropertyHandleOfAnyType
in interface PropertyFileService
defaultTypeName
- 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()
PropertyFileService
createPropertyHandleOfAnyType
in interface PropertyFileService
public void addPropertyFileBean(PropertyFileBean propertyFileBean)
PropertyFileService
PropertyFileBean
to the Hub for use in configuring this serviceaddPropertyFileBean
in interface PropertyFileService
propertyFileBean
- 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()
PropertyFileService
PropertyFileBean
from the Hub if it is presentremovePropertyFileBean
in interface PropertyFileService
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.