org.jboss.weld.context.api
Interface BeanStore

All Known Implementing Classes:
AbstractMapBackedBeanStore, ConcurrentHashMapBeanStore, ForwardingBeanStore

public interface BeanStore

Interface for different implementations of Contextual instance storage.

Author:
Nicklas Karlsson

Method Summary
 void clear()
          Clears the store of contextual instances
<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
<T> void
put(java.lang.String id, ContextualInstance<T> contextualInstance)
          Adds a bean instance to the storage
 

Method Detail

get

<T> ContextualInstance<T> get(java.lang.String id)
Gets an instance of a contextual from the store

Parameters:
contextual - The id of the contextual to return
Returns:
The instance. Null if not found

clear

void clear()
Clears the store of contextual instances


getContextualIds

java.util.Collection<java.lang.String> getContextualIds()
Returns the current contextual instances in the store

Returns:
the instances

put

<T> void put(java.lang.String id,
             ContextualInstance<T> contextualInstance)
Adds a bean instance to the storage

Parameters:
contextualInstance - the contextual instance


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