public abstract class StoragePool extends AbstractPool<java.lang.Class,Storage,RepositoryException>
Constructor and Description |
---|
StoragePool() |
Modifier and Type | Method and Description |
---|---|
protected Storage |
create(java.lang.Class type)
Return a new value instance.
|
protected abstract <S extends Storable> |
createStorage(java.lang.Class<S> type) |
<S extends Storable> |
getStorage(java.lang.Class<S> type)
Returns a Storage instance for the given Storable type, which is lazily
created and pooled.
|
clear, get, remove, values
public <S extends Storable> Storage<S> getStorage(java.lang.Class<S> type) throws MalformedTypeException, SupportException, RepositoryException
protected final Storage create(java.lang.Class type) throws SupportException, RepositoryException
AbstractPool
create
in class AbstractPool<java.lang.Class,Storage,RepositoryException>
SupportException
RepositoryException
protected abstract <S extends Storable> Storage<S> createStorage(java.lang.Class<S> type) throws SupportException, RepositoryException
SupportException
RepositoryException
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.