Package com.sun.enterprise.module
Class RepositoryFactory
- java.lang.Object
-
- com.sun.enterprise.module.RepositoryFactory
-
public abstract class RepositoryFactory extends java.lang.ObjectFactory to create repositories.
-
-
Constructor Summary
Constructors Constructor Description RepositoryFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract RepositorycreateRepository(Repository parent, java.lang.String name, java.net.URI source)Creates a newRepositorywith a parent (for delegating module resolutions) and a name.abstract RepositorycreateRepository(java.lang.String name, java.net.URI source)Creates a newRepository.abstract booleanhandleType(java.lang.String type)Returns true if this factory can handle this type of repository
-
-
-
Method Detail
-
handleType
public abstract boolean handleType(java.lang.String type)
Returns true if this factory can handle this type of repository- Parameters:
type- repository type
-
createRepository
public abstract Repository createRepository(Repository parent, java.lang.String name, java.net.URI source)
Creates a newRepositorywith a parent (for delegating module resolutions) and a name. The URI source identifies the repository location.- Parameters:
parent- the parentRepositoryto delegate module resolutionname- the repository namesource- the location of the repository
-
createRepository
public abstract Repository createRepository(java.lang.String name, java.net.URI source)
Creates a newRepository. The URI source identifies the repository location.- Parameters:
name- the repository namesource- the location of the repository
-
-