org.apache.myfaces.extensions.cdi.message.api
Interface GenericConfig
- All Superinterfaces:
- Serializable
public interface GenericConfig
- extends Serializable
a key/value based config
addProperty
GenericConfig addProperty(String key,
Serializable value)
- to add a key/value pair to the config
- Parameters:
key
- key for the current valuevalue
- value for the current key
- Returns:
- the instance of the config to allow a fluent api
getProperty
Serializable getProperty(String key)
- Parameters:
key
- the key of the value in question
- Returns:
- the value for the given key - null otherwise
getProperty
<T extends Serializable> T getProperty(String key,
Class<T> targetType)
- Parameters:
key
- the key of the value in questiontargetType
- type of the expected value
- Returns:
- the value for the given key - null otherwise
containsProperty
boolean containsProperty(String key)
- Parameters:
key
- the key of the value in question
- Returns:
- true if a value for the given key is available - false otherwise
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.