org.jboss.webbeans.injection.resolution
Class Resolver

java.lang.Object
  extended by org.jboss.webbeans.injection.resolution.Resolver

public class Resolver
extends java.lang.Object

Implementation of Web Beans type safe and name based bean resolution

Author:
Pete Muir

Constructor Summary
Resolver(ManagerImpl manager)
          Constructor
 
Method Summary
 void addInjectionPoints(java.util.Collection<? extends AnnotatedItem<?,?>> elements)
          Add multiple injection points for later resolving using #registerInjectionPoint(AnnotatedItem).
 void clear()
          Reset all cached injection points.
<T,S> java.util.Set<Bean<T>>
get(AnnotatedItem<T,S> key)
          Get the possible beans for the given element
 java.util.Set<Bean<? extends java.lang.Object>> get(java.lang.String name)
          Get the possible beans for the given name
 void resolveInjectionPoints()
          Resolve all injection points added using addInjectionPoints(Collection)
 java.lang.String toString()
          Gets a string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Resolver

public Resolver(ManagerImpl manager)
Constructor

Method Detail

addInjectionPoints

public void addInjectionPoints(java.util.Collection<? extends AnnotatedItem<?,?>> elements)
Add multiple injection points for later resolving using #registerInjectionPoint(AnnotatedItem). Useful during bootstrap.

Parameters:
elements - The injection points to add

clear

public void clear()
Reset all cached injection points. You must reset all cached injection points when you add a bean to the manager


resolveInjectionPoints

public void resolveInjectionPoints()
Resolve all injection points added using addInjectionPoints(Collection)


get

public <T,S> java.util.Set<Bean<T>> get(AnnotatedItem<T,S> key)
Get the possible beans for the given element

Parameters:
key - The resolving criteria
Returns:
An unmodifiable set of matching beans

get

public java.util.Set<Bean<? extends java.lang.Object>> get(java.lang.String name)
Get the possible beans for the given name

Parameters:
name - The name to match
Returns:
The set of matching beans

toString

public java.lang.String toString()
Gets a string representation

Overrides:
toString in class java.lang.Object
Returns:
A string representation


Copyright © 2011. All Rights Reserved.