org.jboss.cdi.tck.tests.alternative.selection
Class AssertBean

java.lang.Object
  extended by org.jboss.cdi.tck.tests.alternative.selection.AssertBean
Direct Known Subclasses:
Alpha, Bravo, Charlie

public abstract class AssertBean
extends Object


Constructor Summary
AssertBean()
           
 
Method Summary
<T> void
assertAmbiguous(Class<T> beanType, Annotation... qualifiers)
          Asserts that typesafe resolution fails - no bean is eligible for injection.
<T> T
assertAvailable(Class<T> beanType, Annotation... qualifiers)
          Assert that a bean with given type and qualifiers is available for injection.
<T> void
assertUnsatisfied(Class<T> beanType, Annotation... qualifiers)
          Asserts that typesafe resolution fails - multiple beans are eligible for injection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssertBean

public AssertBean()
Method Detail

assertUnsatisfied

public <T> void assertUnsatisfied(Class<T> beanType,
                                  Annotation... qualifiers)
Asserts that typesafe resolution fails - multiple beans are eligible for injection. Don't use this method until CDI-331 is resolved.

Parameters:
beanType -
qualifiers -

assertAmbiguous

public <T> void assertAmbiguous(Class<T> beanType,
                                Annotation... qualifiers)
Asserts that typesafe resolution fails - no bean is eligible for injection. Don't use this method until CDI-331 is resolved.

Parameters:
beanType -
qualifiers -

assertAvailable

public <T> T assertAvailable(Class<T> beanType,
                             Annotation... qualifiers)
Assert that a bean with given type and qualifiers is available for injection.

Parameters:
beanType -
qualifiers -
Returns:
the bean instance


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