|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The MetadataRepository is the prototypical instance caching mechanism used by the entire Shocks framework. It's role is simple: Provide a storage, retrieval and monitoring interface for an underlying instance pooling mechanism. The details of the underlying system are purposefully abstract, to allow for flexibility in the underlying implementation.
Method Summary | |
void |
addDataSource(DataSource instance)
Installs a DataSource into an instance pool. |
java.util.Set |
getTypeSet(java.lang.String type)
Get a Set containing one instance of every bean in the
repository corresponding to the specified type. |
DataSource |
leaseDataSource(java.lang.String type,
java.lang.String name)
Lease a DataSource of the appropriate type and name from the appropriate instance pool. |
void |
release(DataSource instance)
Releases the specified DataSource back into its appropriate instance pool. |
Method Detail |
public void addDataSource(DataSource instance)
instance
- public DataSource leaseDataSource(java.lang.String type, java.lang.String name)
type
- name
-
public void release(DataSource instance)
instance
- public java.util.Set getTypeSet(java.lang.String type)
Set
containing one instance of every bean in the
repository corresponding to the specified type.
type
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |