Package com.sun.enterprise.module
Class RepositoryFactory
java.lang.Object
com.sun.enterprise.module.RepositoryFactory
Factory to create repositories.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Repository
createRepository
(Repository parent, String name, URI source) Creates a newRepository
with a parent (for delegating module resolutions) and a name.abstract Repository
createRepository
(String name, URI source) Creates a newRepository
.abstract boolean
handleType
(String type) Returns true if this factory can handle this type of repository
-
Constructor Details
-
RepositoryFactory
public RepositoryFactory()
-
-
Method Details
-
handleType
Returns true if this factory can handle this type of repository- Parameters:
type
- repository type
-
createRepository
Creates a newRepository
with a parent (for delegating module resolutions) and a name. The URI source identifies the repository location.- Parameters:
parent
- the parentRepository
to delegate module resolutionname
- the repository namesource
- the location of the repository
-
createRepository
Creates a newRepository
. The URI source identifies the repository location.- Parameters:
name
- the repository namesource
- the location of the repository
-