@Service public class PropertyFileHandleImpl extends Object implements PropertyFileHandle
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Will remove any instances added by this handle from
the hub, and make it such that this handle can no longer
be used
|
String |
getDefaultInstanceName()
Gets the default instance name that will be given
to instances whose name cannot otherwise be determined
|
String |
getDefaultType()
Returns the default type name if the type cannot
be determined from the key of the property.
|
String |
getSpecificType()
Returns the specific type associated with this handle
|
void |
readProperties(Properties properties)
Reads the file associated with this handle and will do the following:
Add any type found not previously added by this handle
Add any instance found not previously added by this handle
Modify any property that has changed value
Remove any instance no longer seen in the file but that had previously been added
In particular this method will NOT remove a type that was previously added but
which has no more instances (other files may be contributing to the same type).
|
public void readProperties(Properties properties)
PropertyFileHandle
readProperties
in interface PropertyFileHandle
public String getSpecificType()
PropertyFileHandle
getSpecificType
in interface PropertyFileHandle
public String getDefaultType()
PropertyFileHandle
getDefaultType
in interface PropertyFileHandle
public String getDefaultInstanceName()
PropertyFileHandle
getDefaultInstanceName
in interface PropertyFileHandle
public void dispose()
PropertyFileHandle
dispose
in interface PropertyFileHandle
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.