javax.inject
Interface Instance<T>

Type Parameters:
T - the type of the event object

public interface Instance<T>

An interface for looking up beans of a particular type.

Author:
Gavin King

Method Summary
 T get(java.lang.annotation.Annotation... bindings)
          Get an instance of a bean of the specified type.
 

Method Detail

get

T get(java.lang.annotation.Annotation... bindings)
Get an instance of a bean of the specified type. Additional binding annotations may be specified at the injection point.

Parameters:
bindings - Additional binding types
Returns:
an instance of a bean of the specified type
Throws:
DuplicateBindingTypeException - if two instances of the same binding type are passed
java.lang.IllegalArgumentException - if an instance of an annotation that is not a binding type is passed


Copyright © 2008-2009. All Rights Reserved.