Package org.jvnet.hk2.config.types
Interface PropertyBagCustomizer
-
- All Known Implementing Classes:
PropertyBagCustomizerImpl
@Contract public interface PropertyBagCustomizer
- Author:
- jwells
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_IMPLEMENTATION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Property
getProperty(PropertyBag me, String name)
String
getPropertyValue(PropertyBag me, String name)
Returns a property value if the bean has properties and one of its properties name is equal to the one passed.String
getPropertyValue(PropertyBag me, String name, String defaultValue)
Returns a property value if the bean has properties and one of its properties name is equal to the one passed.
-
-
-
Field Detail
-
DEFAULT_IMPLEMENTATION
static final String DEFAULT_IMPLEMENTATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getProperty
Property getProperty(PropertyBag me, String name)
-
getPropertyValue
String getPropertyValue(PropertyBag me, String name)
Returns a property value if the bean has properties and one of its properties name is equal to the one passed.- Parameters:
name
- the property name requested- Returns:
- the property value or null if not found
-
getPropertyValue
String getPropertyValue(PropertyBag me, String name, String defaultValue)
Returns a property value if the bean has properties and one of its properties name is equal to the one passed. Otherwise return the default value.- Parameters:
name
- the property name requesteddefaultValue
- is the default value to return in case the property of that name does not exist in this bag- Returns:
- the property value
-
-