Package org.jvnet.hk2.config.types
Class PropertyBagCustomizerImpl
- java.lang.Object
-
- org.jvnet.hk2.config.types.PropertyBagCustomizerImpl
-
- All Implemented Interfaces:
PropertyBagCustomizer
@Singleton @Contract @Named("system default") public class PropertyBagCustomizerImpl extends Object implements PropertyBagCustomizer
- Author:
- jwells
-
-
Field Summary
-
Fields inherited from interface org.jvnet.hk2.config.types.PropertyBagCustomizer
DEFAULT_IMPLEMENTATION
-
-
Constructor Summary
Constructors Constructor Description PropertyBagCustomizerImpl()
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Method Detail
-
getProperty
public Property getProperty(PropertyBag me, String name)
- Specified by:
getProperty
in interfacePropertyBagCustomizer
-
getPropertyValue
public String getPropertyValue(PropertyBag me, String name)
Description copied from interface:PropertyBagCustomizer
Returns a property value if the bean has properties and one of its properties name is equal to the one passed.- Specified by:
getPropertyValue
in interfacePropertyBagCustomizer
name
- the property name requested- Returns:
- the property value or null if not found
-
getPropertyValue
public String getPropertyValue(PropertyBag me, String name, String defaultValue)
Description copied from interface:PropertyBagCustomizer
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.- Specified by:
getPropertyValue
in interfacePropertyBagCustomizer
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
-
-