shocks.dawp
Interface DataSource

All Known Implementing Classes:
MDBean, Result

public interface DataSource

DataSource components store information for use by the framework. This information may or may not persist, but those details are left to the individual storage mechanisms. For use within the framework, however, they are used as a simple transport mechanism for encapsulating and shuttling data throughout the system. DataSource implementations may specify accessor methods for their fields, and may require specific types to be entered through their constructor, but those additional features are left to the implementation provider.


Method Summary
 java.lang.Object getAttribute(java.lang.String key)
          Uses the incoming key to find and return an object of nonspecific type.
 void setAttribute(java.lang.String key, java.lang.Object value)
          Stores the incoming value object and creates a mapping to it with the String key.
 

Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String key)
Uses the incoming key to find and return an object of nonspecific type.

Parameters:
key -
Returns:
Object

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.Object value)
Stores the incoming value object and creates a mapping to it with the String key.

Parameters:
key -
value -