Interface SystemPropertyBag
-
- All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy
public interface SystemPropertyBag extends org.jvnet.hk2.config.ConfigBeanProxyBase interface for those configuration objects that has nested <system-property> elements.Important: document legal properties using PropertiesDesc, one PropertyDesc for each legal system-property.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSystemPropertyBag.Duck
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontainsProperty(String name)StringgetPropertyValue(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.List<SystemProperty>getSystemProperty()Gets the list of system-property.SystemPropertygetSystemProperty(String name)StringgetSystemPropertyValue(String name)Returns a property value if the bean has system properties and one of its system-property names is equal to the one passed.
-
-
-
Method Detail
-
getSystemProperty
List<SystemProperty> getSystemProperty()
Gets the list of system-property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the object. This is why there is not asetmethod for the property property. For example, to add a new item, do as follows:getSystemProperty().add(newItem);
Objects of the following type(s) are allowed in the listSystemProperty
-
getSystemProperty
@DuckTyped SystemProperty getSystemProperty(String name)
-
getSystemPropertyValue
@DuckTyped String getSystemPropertyValue(String name)
Returns a property value if the bean has system properties and one of its system-property names is equal to the one passed.- Parameters:
name- the system property name requested- Returns:
- the property value or null if not found
-
getPropertyValue
@DuckTyped String getPropertyValue(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 requested
-
containsProperty
@DuckTyped boolean containsProperty(String name)
-
-