|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectshocks.framework.meta.repository.CentralMetadataRepository
The repository handles instance pooling and will return an instance of any MDBean type upon request.
Constructor Summary | |
CentralMetadataRepository()
|
Method Summary | |
void |
addDataSource(DataSource instance)
Adds the DataSource instance to an InstancePool, sorted by the element's type and name. |
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)
Returns an instance of a DataSource of a matching name and type. |
void |
release(DataSource instance)
Releases a DataSource back into the pool. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CentralMetadataRepository()
Method Detail |
public DataSource leaseDataSource(java.lang.String type, java.lang.String name)
leaseDataSource
in interface MetadataRepository
type
- name
-
public void addDataSource(DataSource instance)
addDataSource
in interface MetadataRepository
instance
- -- DataSource to be pooledpublic void release(DataSource instance)
release
in interface MetadataRepository
instance
- -- DataSource to be released back into the poolpublic java.util.Set getTypeSet(java.lang.String type)
MetadataRepository
Set
containing one instance of every bean in the
repository corresponding to the specified type.
getTypeSet
in interface MetadataRepository
type
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |