ooc
Interface InstanceHolder

All Known Implementing Classes:
InstanceHolderPrimitive, InstanceHolderSingleton

public interface InstanceHolder

Keeping track of the life cycle of the instance after construction.


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.
 

Method Detail

containsInstance

public boolean containsInstance(Tag tag)
Returns true if a tag instance is available for given tag, else false.


getInstance

public java.lang.Object getInstance(Tag tag)
Returns the tag available for the given tag.


holdInstance

public void holdInstance(Tag tag,
                         java.lang.Object instance)
Adds a tag instance to this holder given the tag and the instance.