org.milyn.container
Interface BoundAttributeStore

All Known Subinterfaces:
ApplicationContext, ExecutionContext
All Known Implementing Classes:
MockApplicationContext, MockExecutionContext, StandaloneApplicationContext, StandaloneExecutionContext

public interface BoundAttributeStore

BoundAttributeStore interface definition.

Defines methods for binding, getting and removing named objects on an implementing class.

Author:
tfennelly

Method Summary
 Object getAttribute(Object key)
          Returns the object bound with the specified name in this BoundAttributeStore implementation, or null if no object is bound under the name.
 Map getAttributes()
          Returns the Map of attributes bound in this BoundAttributeStore
 void removeAttribute(Object key)
          Removes the object bound with the specified name from this BoundAttributeStore implementation.
 void setAttribute(Object key, Object value)
          Binds an object to this BoundAttributeStore implementation, using the name specified.
 

Method Detail

setAttribute

void setAttribute(Object key,
                  Object value)
Binds an object to this BoundAttributeStore implementation, using the name specified. If an object of the same name is already bound, the object is replaced.

Parameters:
key - The key against which the object is bound; cannot be null.
value - The object to be bound; cannot be null.

getAttribute

Object getAttribute(Object key)
Returns the object bound with the specified name in this BoundAttributeStore implementation, or null if no object is bound under the name.

Parameters:
key - The key against which the object is bound; cannot be null.
Returns:
The object bound with the specified name in this BoundAttributeStore implementation, or null if no object is bound under the name.

getAttributes

Map getAttributes()
Returns the Map of attributes bound in this BoundAttributeStore

Returns:
Map of all objects bound in this BoundAttributeStore

removeAttribute

void removeAttribute(Object key)
Removes the object bound with the specified name from this BoundAttributeStore implementation. If the BoundAttributeStore implementation does not have an object bound with the specified name, this method does nothing.

Parameters:
key - The key against which the object is bound; cannot be null.


Copyright © 2008. All Rights Reserved.