com.sun.enterprise.module
Class RepositoryFactories

java.lang.Object
  extended by com.sun.enterprise.module.RepositoryFactories

public class RepositoryFactories
extends Object

Registry for RepositoryFactory instances

Author:
Jerome Dochez

Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RepositoryFactories getInstance()
Return the instance holding registered repository factories

Returns:
the instance holding factories

addRepositoryFactory

public void addRepositoryFactory(RepositoryFactory factory)
Add a new RepositoryFactory to the list of repository factories.

Parameters:
factory - the new factory to add

getFactories

public Iterator<RepositoryFactory> getFactories()
Returns an interator of registered ReposistoryFactory

Returns:
an iterator or registered factories

getFactoryFor

public RepositoryFactory getFactoryFor(String type)
Returns a RespositoryFactory factory instance capable of creating Repository repositories of the provided type

Parameters:
type - type of the repository we request the RepositoryFactory


Copyright © 2013 Oracle Corporation. All Rights Reserved.