org.jboss.webbeans
Class InstanceImpl<T>
java.lang.Object
org.jboss.webbeans.FacadeImpl<T>
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InstanceImpl
public InstanceImpl(java.lang.Class<T> type,
Manager manager,
java.lang.annotation.Annotation... bindingTypes)
- Constructor
- Parameters:
type - The obtainable typemanager - The Web Beans managerbindingTypes - The binding types
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.