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:
Instace

Field Summary
 
Fields inherited from class org.jboss.webbeans.FacadeImpl
bindingTypes, manager, type
 
Constructor Summary
InstanceImpl(java.lang.Class<T> type, Manager manager, java.lang.annotation.Annotation... bindingTypes)
          Constructor
 
Method Summary
 T get(java.lang.annotation.Annotation... bindingTypes)
          Gets an instance with the matching binding types
protected  java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getFilteredAnnotations()
          Filters annotations from the binding type or parameter lists This implementation filters no annotations
 java.lang.String toString()
          Gets a string representation
 
Methods inherited from class org.jboss.webbeans.FacadeImpl
mergeBindings, mergeBindingTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceImpl

public InstanceImpl(java.lang.Class<T> type,
                    Manager manager,
                    java.lang.annotation.Annotation... bindingTypes)
Constructor

Parameters:
type - The obtainable type
manager - The Web Beans manager
bindingTypes - The binding types
Method Detail

get

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

Specified by:
get in interface Instance<T>
Parameters:
bindingTypes - 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

getFilteredAnnotations

protected java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getFilteredAnnotations()
Filters annotations from the binding type or parameter lists This implementation filters no annotations

Specified by:
getFilteredAnnotations in class FacadeImpl<T>
Returns:
A set of annotations to filter
See Also:
FacadeImpl.getFilteredAnnotations()


Copyright © 2008. All Rights Reserved.