public class RepositoryFactories extends Object
Modifier and Type | Method and Description |
---|---|
void |
addRepositoryFactory(RepositoryFactory factory)
Add a new
RepositoryFactory to the list of
repository factories. |
Iterator<RepositoryFactory> |
getFactories()
Returns an interator of registered
ReposistoryFactory |
RepositoryFactory |
getFactoryFor(String type)
Returns a
RespositoryFactory factory instance
capable of creating Repository repositories of
the provided type |
static RepositoryFactories |
getInstance()
Return the instance holding registered repository factories
|
public static RepositoryFactories getInstance()
public void addRepositoryFactory(RepositoryFactory factory)
RepositoryFactory
to the list of
repository factories.factory
- the new factory to addpublic Iterator<RepositoryFactory> getFactories()
ReposistoryFactory
public RepositoryFactory getFactoryFor(String type)
RespositoryFactory
factory instance
capable of creating Repository
repositories of
the provided typetype
- type of the repository we request the RepositoryFactoryCopyright © 2009–2023 Oracle Corporation. All rights reserved.