|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DataSource
This interface defines the methods that external data sources will have to implement.
| Method Summary | |
|---|---|
boolean |
exists(java.lang.String key)
Returns true if the given key exists in the datasource. |
java.lang.String |
getName()
Gets the name for the data source. |
java.lang.String |
getValue(java.lang.String key)
Returns the value for the given key. |
void |
init()
This method is used to initiate the data source; this may consist in the load of a file, the connection to an LDAP server or an SQL database, or whatever other form of initiating a data retrieving. |
void |
setName(java.lang.String id)
Sets a name for the data source. |
| Method Detail |
|---|
void init()
throws DataSourceException
DataSourceException - If there was an error when initting the data sourcevoid setName(java.lang.String id)
id - A identificator for the data sourcejava.lang.String getName()
java.lang.String getValue(java.lang.String key)
throws DataSourceException
key - the name of the key
DataSourceException - If there was a problem retrieving the key from the data source
boolean exists(java.lang.String key)
throws DataSourceException
key - the name of the key
DataSourceException - If there was a problem when trying to guess if the key exists
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||