org.apache.myfaces.extensions.cdi.message.api
Interface GenericConfig

All Superinterfaces:
Serializable

public interface GenericConfig
extends Serializable

a key/value based config


Method Summary
 GenericConfig addProperty(String key, Serializable value)
          to add a key/value pair to the config
 boolean containsProperty(String key)
           
 Serializable getProperty(String key)
           
<T extends Serializable>
T
getProperty(String key, Class<T> targetType)
           
 

Method Detail

addProperty

GenericConfig addProperty(String key,
                          Serializable value)
to add a key/value pair to the config

Parameters:
key - key for the current value
value - 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 question
targetType - 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.