org.jboss.webbeans.context
Class DependentInstancesStore

java.lang.Object
  extended by org.jboss.webbeans.context.DependentInstancesStore

public class DependentInstancesStore
extends java.lang.Object

A store for dependent instances created under a given key

Author:
Nicklas Karlsson

Constructor Summary
DependentInstancesStore()
          Creates a new DependentInstancesStore
 
Method Summary
<T> void
addDependentInstance(java.lang.Object key, ContextualInstance<T> contextualInstance)
          Adds a dependent instance under a given key
 void destroyDependentInstances(java.lang.Object key)
          Destroys all dependent objects associated with a particular key and remove that key from the store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependentInstancesStore

public DependentInstancesStore()
Creates a new DependentInstancesStore

Method Detail

addDependentInstance

public <T> void addDependentInstance(java.lang.Object key,
                                     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(java.lang.Object key)
Destroys all dependent objects associated with a particular key and remove that key from the store

Parameters:
key - The key to remove


Copyright © 2011. All Rights Reserved.