org.objectweb.jac.util
Class WeakRepository

java.lang.Object
  extended byorg.objectweb.jac.util.Repository
      extended byorg.objectweb.jac.util.WeakRepository
Direct Known Subclasses:
NameRepository

public class WeakRepository
extends Repository

This class can be subclassed to create specific repositories.

A repository class should be a singleton (a sole instance class). Thus, the repository subclasses should define a static field and a static method 'get' that returns the unique repository for the class and that creates it if it does not exist.


Field Summary
 
Fields inherited from class org.objectweb.jac.util.Repository
names, objects, repository
 
Constructor Summary
WeakRepository()
           
 
Method Summary
protected  void init()
           
 
Methods inherited from class org.objectweb.jac.util.Repository
dump, get, getName, getNames, getObject, getObjects, getPrintableString, isRegistered, register, unregister, unregisterObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeakRepository

public WeakRepository()
Method Detail

init

protected void init()
Overrides:
init in class Repository