Interface PolicyParameters
-
- All Known Implementing Classes:
DynaBeanACRParameter
public interface PolicyParameters
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
get(java.lang.String key)
Follows the contract for java.util.Map;void
lock()
This makes the map itself read only, but the mutability of objects that this map contains is not affected.void
put(java.lang.String key, java.lang.Object value)
This is a convenience method for developers that prefer to think of this as a map instead of being bean-like.void
set(java.lang.String key, java.lang.Object value)
This works just like a Map, except it will throw an exception if lock() has been called.
-
-
-
Method Detail
-
get
java.lang.Object get(java.lang.String key)
Follows the contract for java.util.Map;- Parameters:
key
-- Returns:
- See Also:
Map
-
set
void set(java.lang.String key, java.lang.Object value) throws java.lang.IllegalArgumentException
This works just like a Map, except it will throw an exception if lock() has been called.- Parameters:
key
-value
-- Throws:
java.lang.IllegalArgumentException
- if this DynaBeanACRParameter instance has already been locked.
-
put
void put(java.lang.String key, java.lang.Object value) throws java.lang.IllegalArgumentException
This is a convenience method for developers that prefer to think of this as a map instead of being bean-like.- Throws:
java.lang.IllegalArgumentException
- See Also:
set(java.lang.String,java.lang.Object)
-
lock
void lock()
This makes the map itself read only, but the mutability of objects that this map contains is not affected. Specifically, properties cannot be added or removed and the reference cannot be changed to a different object, but this does not change whether the values that the object contains can be changed.
-
-