ooc
Class InstanceHolderSingleton

java.lang.Object
  extended byooc.InstanceHolderSingleton
All Implemented Interfaces:
InstanceHolder

public class InstanceHolderSingleton
extends java.lang.Object
implements InstanceHolder


Constructor Summary
InstanceHolderSingleton()
           
 
Method Summary
 boolean containsInstance(Tag tag)
          Returns true if a tag instance is available for given tag, else false.
 java.lang.Object getInstance(Tag tag)
          Returns the tag available for the given tag.
 void holdInstance(Tag tag, java.lang.Object instance)
          Adds a tag instance to this holder given the tag and the instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceHolderSingleton

public InstanceHolderSingleton()
Method Detail

containsInstance

public boolean containsInstance(Tag tag)
Description copied from interface: InstanceHolder
Returns true if a tag instance is available for given tag, else false.

Specified by:
containsInstance in interface InstanceHolder

getInstance

public java.lang.Object getInstance(Tag tag)
Description copied from interface: InstanceHolder
Returns the tag available for the given tag.

Specified by:
getInstance in interface InstanceHolder

holdInstance

public void holdInstance(Tag tag,
                         java.lang.Object instance)
Description copied from interface: InstanceHolder
Adds a tag instance to this holder given the tag and the instance.

Specified by:
holdInstance in interface InstanceHolder