com.trendmicro.grid.acl.ds
Class RepositorySelectors

java.lang.Object
  extended by 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

Constructor Summary
RepositorySelectors()
           
 
Method Summary
 void addSelector(RepositorySelector selector)
           
 List<RepositorySelector<?>> getAllSelectors()
           
 long getLastModified()
           
<R extends Repository>
RepositorySelector<R>
getSelector(Class<R> repositoryClass)
          Returns a repository selector for the given class.
<R extends Repository>
RepositorySelector<R>
getSelector(String repositoryClass)
          Returns a repository selector for the given class.
 void setLastModified(long time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositorySelectors

public RepositorySelectors()
Method Detail

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.