org.jboss.weld.context
Class DependentInstancesStore

java.lang.Object
  extended by org.jboss.weld.context.DependentInstancesStore
All Implemented Interfaces:
java.io.Serializable

public class DependentInstancesStore
extends java.lang.Object
implements java.io.Serializable

A store for dependent instances created under a given key

Author:
Nicklas Karlsson
See Also:
Serialized Form

Constructor Summary
DependentInstancesStore()
          Creates a new DependentInstancesStore
 
Method Summary
<T> void
addDependentInstance(org.jboss.weld.context.api.ContextualInstance<T> contextualInstance)
          Adds a dependent instance under a given key
 void destroyDependentInstances()
          Destroys all dependent objects
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DependentInstancesStore

public DependentInstancesStore()
Creates a new DependentInstancesStore

Method Detail

addDependentInstance

public <T> void addDependentInstance(org.jboss.weld.context.api.ContextualInstance<T> contextualInstance)
Adds a dependent instance under a given key

Parameters:
key - The key to store the instance under
contextualInstance - The instance to store

destroyDependentInstances

public void destroyDependentInstances()
Destroys all dependent objects

Parameters:
key - The key to remove

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008-2009 Seam Framework. All Rights Reserved.