org.jboss.weld.context.api.helpers
Class ForwardingBeanStore

java.lang.Object
  extended by org.jboss.weld.context.api.helpers.ForwardingBeanStore
All Implemented Interfaces:
BeanStore

public abstract class ForwardingBeanStore
extends java.lang.Object
implements BeanStore


Constructor Summary
ForwardingBeanStore()
           
 
Method Summary
 void clear()
          Clears the store of contextual instances
protected abstract  BeanStore delegate()
           
 boolean equals(java.lang.Object obj)
           
<T> ContextualInstance<T>
get(java.lang.String id)
          Gets an instance of a contextual from the store
 java.util.Collection<java.lang.String> getContextualIds()
          Returns the current contextual instances in the store
 int hashCode()
           
<T> void
put(java.lang.String id, ContextualInstance<T> beanInstance)
          Adds a bean instance to the storage
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForwardingBeanStore

public ForwardingBeanStore()
Method Detail

delegate

protected abstract BeanStore delegate()

clear

public void clear()
Description copied from interface: BeanStore
Clears the store of contextual instances

Specified by:
clear in interface BeanStore

get

public <T> ContextualInstance<T> get(java.lang.String id)
Description copied from interface: BeanStore
Gets an instance of a contextual from the store

Specified by:
get in interface BeanStore
Returns:
The instance. Null if not found

getContextualIds

public java.util.Collection<java.lang.String> getContextualIds()
Description copied from interface: BeanStore
Returns the current contextual instances in the store

Specified by:
getContextualIds in interface BeanStore
Returns:
the instances

put

public <T> void put(java.lang.String id,
                    ContextualInstance<T> beanInstance)
Description copied from interface: BeanStore
Adds a bean instance to the storage

Specified by:
put in interface BeanStore
beanInstance - the contextual instance

toString

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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