public interface 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).
|
void readProperties(Properties properties)
Properties
- The properties object to inspect. May not be nullString getSpecificType()
String getDefaultType()
String getDefaultInstanceName()
void dispose()
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.