org.jboss.webbeans
Class InstanceImpl<T>

java.lang.Object
  extended by org.jboss.webbeans.FacadeImpl<T>
      extended by org.jboss.webbeans.InstanceImpl<T>
Type Parameters:
T -
All Implemented Interfaces:
Instance<T>

public class InstanceImpl<T>
extends FacadeImpl<T>
implements Instance<T>

Helper implementation for Instance for getting instances

Author:
Gavin King
See Also:
javax.webbeans.Instace

Field Summary
 
Fields inherited from class org.jboss.webbeans.FacadeImpl
bindings, type
 
Method Summary
 T get(java.lang.annotation.Annotation... bindings)
          Gets an instance with the matching binding types
static
<I> Instance<I>
of(java.lang.reflect.Type type, ManagerImpl manager, java.util.Set<java.lang.annotation.Annotation> annotations)
           
 java.lang.String toString()
          Gets a string representation
 
Methods inherited from class org.jboss.webbeans.FacadeImpl
getManager, mergeInBindings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

of

public static <I> Instance<I> of(java.lang.reflect.Type type,
                                 ManagerImpl manager,
                                 java.util.Set<java.lang.annotation.Annotation> annotations)

get

public T get(java.lang.annotation.Annotation... bindings)
Gets an instance with the matching binding types

Specified by:
get in interface Instance<T>
Parameters:
bindings - The binding types
Returns:
The instance
See Also:
Instance.get(Annotation...), Manager.getInstanceByType(Class, Annotation...)

toString

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

Overrides:
toString in class FacadeImpl<T>
Returns:
A string representation


Copyright © 2011. All Rights Reserved.