public class PlainConfiguration extends AbstractConfiguration
AbstractConfiguration.Primitive
NO_DATA, NO_DEFAULT
Constructor and Description |
---|
PlainConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected Object |
getEntryInternal(String component,
String name,
Class type,
Object data)
Returns an object created using the information in the entry matching the specified component
and name, and the specified data, for the requested type.
|
static Object |
parseNumber(String text,
Class targetClass) |
void |
setEntry(String component,
String name,
Object entry) |
static String |
trimAllWhitespace(String str) |
getEntry, getEntry, getEntry, validIdentifier, validQualifiedIdentifier
protected Object getEntryInternal(String component, String name, Class type, Object data) throws ConfigurationException
AbstractConfiguration
AbstractConfiguration.Primitive
. Implementations may use
type
to perform conversions on primitive values, if desired, but are not
required to check if the object is of the requested type. Repeated calls with the same
arguments may or may not return the identical object.
The default implementations of the getEntry
methods delegate to this method;
implementations can rely on the fact that calls made to this method by those methods will
have arguments that are not null
and that have the correct syntax.
getEntryInternal
in class AbstractConfiguration
component
- the component being configuredname
- the name of the entry for the componenttype
- the type of object requesteddata
- an object to use when computing the value of the entry, or Configuration.NO_DATA
to specify no datacomponent
and name
, and using the value of data
(unless it is
NO_DATA
)NoSuchEntryException
- if no matching entry is foundConfigurationException
- if a matching entry is found but a problem occurs creating the
object for the entryConfiguration.getEntry
Copyright © GigaSpaces.