java.lang.Object
com.sun.enterprise.module.RepositoryFactories
Registry for RepositoryFactory instances
- Author:
- Jerome Dochez
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddRepositoryFactory(RepositoryFactory factory) Add a newRepositoryFactoryto the list of repository factories.Returns an interator of registeredReposistoryFactorygetFactoryFor(String type) Returns aRespositoryFactoryfactory instance capable of creatingRepositoryrepositories of the provided typestatic RepositoryFactoriesReturn the instance holding registered repository factories
-
Method Details
-
getInstance
Return the instance holding registered repository factories- Returns:
- the instance holding factories
-
addRepositoryFactory
Add a newRepositoryFactoryto the list of repository factories.- Parameters:
factory- the new factory to add
-
getFactories
Returns an interator of registeredReposistoryFactory- Returns:
- an iterator or registered factories
-
getFactoryFor
Returns aRespositoryFactoryfactory instance capable of creatingRepositoryrepositories of the provided type- Parameters:
type- type of the repository we request the RepositoryFactory
-