net.krecan.m2_proxy.repository
Class RepositoryCollection

java.lang.Object
  extended by net.krecan.m2_proxy.repository.RepositoryCollection
All Implemented Interfaces:
Repository

public class RepositoryCollection
extends Object
implements Repository

Repository that conists of repository collection. This collection is traversed when looking for the resource.

Author:
Lukas Krecan

Constructor Summary
RepositoryCollection()
           
 
Method Summary
 void addRepository(Repository repository)
           
 List getRepositories()
           
 Resource loadResource(String resourcePath)
          Loads resources.
 void setRepositories(List repositories)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryCollection

public RepositoryCollection()
Method Detail

loadResource

public Resource loadResource(String resourcePath)
                      throws IOException
Description copied from interface: Repository
Loads resources. When the resource can not be loaded, returns null

Specified by:
loadResource in interface Repository
Returns:
returns resource
Throws:
IOException

addRepository

public void addRepository(Repository repository)

getRepositories

public List getRepositories()

setRepositories

public void setRepositories(List repositories)


Copyright © 2006 null. All Rights Reserved.