org.jboss.weld.bean.builtin.facade
Class InstanceImpl<T>

java.lang.Object
  extended by org.jboss.weld.bean.builtin.facade.AbstractFacade<T,javax.enterprise.inject.Instance<T>>
      extended by org.jboss.weld.bean.builtin.facade.InstanceImpl<T>
Type Parameters:
T -
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<T>, javax.enterprise.inject.Instance<T>, javax.inject.Provider<T>

public class InstanceImpl<T>
extends AbstractFacade<T,javax.enterprise.inject.Instance<T>>
implements javax.enterprise.inject.Instance<T>, java.io.Serializable

Helper implementation for Instance for getting instances

Author:
Gavin King
See Also:
Serialized Form

Method Summary
 T get()
           
 T get(java.lang.annotation.Annotation... bindings)
           
 boolean isAmbiguous()
           
 boolean isUnsatisfied()
           
 java.util.Iterator<T> iterator()
           
static
<I> javax.enterprise.inject.Instance<I>
of(java.lang.reflect.Type type, BeanManagerImpl manager, java.util.Set<java.lang.annotation.Annotation> annotations)
           
protected  java.lang.Object readResolve()
           
 javax.enterprise.inject.Instance<T> select(java.lang.annotation.Annotation... bindings)
           
<U extends T>
javax.enterprise.inject.Instance<U>
select(java.lang.Class<U> subtype, java.lang.annotation.Annotation... bindings)
           
<U extends T>
javax.enterprise.inject.Instance<U>
select(javax.enterprise.inject.TypeLiteral<U> subtype, java.lang.annotation.Annotation... bindings)
           
 java.lang.String toString()
          Gets a string representation
 
Methods inherited from class org.jboss.weld.bean.builtin.facade.AbstractFacade
getBindings, getManager, getType, mergeInBindings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

of

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

get

public T get(java.lang.annotation.Annotation... bindings)
Specified by:
get in interface javax.enterprise.inject.Instance<T>

get

public T get()
Specified by:
get in interface javax.inject.Provider<T>

toString

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

Overrides:
toString in class AbstractFacade<T,javax.enterprise.inject.Instance<T>>
Returns:
A string representation

iterator

public java.util.Iterator<T> iterator()
Specified by:
iterator in interface java.lang.Iterable<T>

isAmbiguous

public boolean isAmbiguous()
Specified by:
isAmbiguous in interface javax.enterprise.inject.Instance<T>

isUnsatisfied

public boolean isUnsatisfied()
Specified by:
isUnsatisfied in interface javax.enterprise.inject.Instance<T>

select

public javax.enterprise.inject.Instance<T> select(java.lang.annotation.Annotation... bindings)
Specified by:
select in interface javax.enterprise.inject.Instance<T>

select

public <U extends T> javax.enterprise.inject.Instance<U> select(java.lang.Class<U> subtype,
                                                                java.lang.annotation.Annotation... bindings)
Specified by:
select in interface javax.enterprise.inject.Instance<T>

select

public <U extends T> javax.enterprise.inject.Instance<U> select(javax.enterprise.inject.TypeLiteral<U> subtype,
                                                                java.lang.annotation.Annotation... bindings)
Specified by:
select in interface javax.enterprise.inject.Instance<T>

readResolve

protected java.lang.Object readResolve()


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