info.jedi
Class Repository

java.lang.Object
  |
  +--info.jedi.Repository
Direct Known Subclasses:
LocalRepository

public abstract class Repository
extends java.lang.Object

This abstract class allows the user to look up an object in a repository by name. There is a repository of type LocalRepository on the local virtual machine accessible through local().

See Also:
LocalRepository

Field Summary
protected static LocalRepository _local
          The local repository.
 
Constructor Summary
Repository()
           
 
Method Summary
static LocalRepository local()
          Get the local Repository for this virtual machine.
abstract  java.lang.Object lookup(java.lang.String name)
          look up an object by name in this repository
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_local

protected static LocalRepository _local
The local repository. In a future interface, you will be able to replace the default one (created in local()) with one of your own type.
Constructor Detail

Repository

public Repository()
Method Detail

lookup

public abstract java.lang.Object lookup(java.lang.String name)
look up an object by name in this repository

local

public static LocalRepository local()
Get the local Repository for this virtual machine. If it doesn't exist, it tries to create it as a LocalRepositoryImplementation. Robust applications should check for returning null on the first call.