com.trendmicro.grid.acl.ds
Class RepositorySelectors
java.lang.Object
com.trendmicro.grid.acl.ds.RepositorySelectors
public class RepositorySelectors
- extends Object
Is a persitable list of repository selectors.
- Version:
- 1.0
- Author:
- juergen_kellerer, 2010-05-05
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepositorySelectors
public RepositorySelectors()
getAllSelectors
public List<RepositorySelector<?>> getAllSelectors()
getLastModified
public long getLastModified()
setLastModified
public void setLastModified(long time)
addSelector
public void addSelector(RepositorySelector selector)
getSelector
public <R extends Repository> RepositorySelector<R> getSelector(Class<R> repositoryClass)
- Returns a repository selector for the given class.
- Type Parameters:
R
- the type of repository interface to return.- Parameters:
repositoryClass
- the repository interface of the selector to return.
- Returns:
- a selector for the given class, returns an empty selector instance
if no selector exists for a given repository.
getSelector
public <R extends Repository> RepositorySelector<R> getSelector(String repositoryClass)
- Returns a repository selector for the given class.
- Type Parameters:
R
- the type of repository interface to return.- Parameters:
repositoryClass
- the repository interface of the selector to return.
- Returns:
- a selector for the given class, returns an empty selector instance
if no selector exists for a given repository.