Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdbf.engine.repository
Class RepositoryFactory  view RepositoryFactory download RepositoryFactory.java

java.lang.Object
  extended byorg.jdbf.engine.repository.RepositoryFactory

public class RepositoryFactory
extends java.lang.Object

RepositoryFactory is a factory of Repository. Collection of Repository are loaded on startup and are putted in this class so they are available.


Field Summary
private  java.util.Map repositories
          Contains Repository
 
Constructor Summary
RepositoryFactory()
          Creates a empty object
RepositoryFactory(java.util.Map map)
          Creates a object.
 
Method Summary
 void addRepository(java.lang.String key, Repository repository)
          Add Repository with the specific key.
 java.util.Map getRepositories()
          Return a Map of Repository
 Repository getRepository(java.lang.String key)
          Return the Repository with the name specified in key paramater
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repositories

private java.util.Map repositories
Contains Repository

Constructor Detail

RepositoryFactory

public RepositoryFactory()
Creates a empty object


RepositoryFactory

public RepositoryFactory(java.util.Map map)
Creates a object.

Method Detail

addRepository

public void addRepository(java.lang.String key,
                          Repository repository)
                   throws org.jdbf.engine.mapping.MappingException
Add Repository with the specific key.


getRepository

public Repository getRepository(java.lang.String key)
Return the Repository with the name specified in key paramater


getRepositories

public java.util.Map getRepositories()
Return a Map of Repository