public abstract class BasicPropertyResolver<V> extends Object implements PropertyResolver<V>
Modifier and Type | Class and Description |
---|---|
static class |
BasicPropertyResolver.ClassResolver
Class resolver will try to create class from passed String
|
static class |
BasicPropertyResolver.PropertyEditorDelegateResolver<V>
Resolver for primitive java types.
|
static class |
BasicPropertyResolver.StringResolver
String resolver simply return passed value
|
Constructor and Description |
---|
BasicPropertyResolver() |
Modifier and Type | Method and Description |
---|---|
V |
resolveProperty(Object propertyValueFromConfiguration,
Class<V> propertyClass)
Resolve property value from configuration (usually XML configuration) to real property value, which will be used
in IDM configuration
|
protected abstract V |
resolvePropertyFromString(String stringPropertyValue,
Class<V> propertyClass)
Should be overriden for resolvers, which are able to map simple String to expected java type
|
public V resolveProperty(Object propertyValueFromConfiguration, Class<V> propertyClass)
resolveProperty
in interface PropertyResolver<V>
propertyValueFromConfiguration
- object from XML configuration. Type of this object is usually String
(for simple text value of XML property)propertyClass
- type of property to returnprotected abstract V resolvePropertyFromString(String stringPropertyValue, Class<V> propertyClass)
stringPropertyValue
- property value from XML configurationpropertyClass
- type of property to returnCopyright © 2016 JBoss by Red Hat. All rights reserved.