Errai 3.0.1-SNAPSHOT

org.jboss.errai.ioc.rebind.ioc.metadata
Class JSR330QualifyingMetadata

java.lang.Object
  extended by org.jboss.errai.ioc.rebind.ioc.metadata.JSR330QualifyingMetadata
All Implemented Interfaces:
QualifyingMetadata

public class JSR330QualifyingMetadata
extends Object
implements QualifyingMetadata

Author:
Mike Brock .

Constructor Summary
JSR330QualifyingMetadata(Collection<Annotation> qualifiers)
           
 
Method Summary
static JSR330QualifyingMetadata createFromAnnotations(Annotation[] annotations)
          Extract qualifiers from annotations.
static Set<Annotation> createSetFromAnnotations(Annotation[] annotations)
           
 boolean doesSatisfy(QualifyingMetadata metadata)
           
 boolean equals(Object obj)
           
 QualifyingMetadata filter(Annotation annotation)
          Return a copy of this object with the given annotation filtered out.
 Annotation[] getQualifiers()
           
 int hashCode()
           
 Statement render()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSR330QualifyingMetadata

public JSR330QualifyingMetadata(Collection<Annotation> qualifiers)
Method Detail

render

public Statement render()
Specified by:
render in interface QualifyingMetadata

doesSatisfy

public boolean doesSatisfy(QualifyingMetadata metadata)
Specified by:
doesSatisfy in interface QualifyingMetadata

createFromAnnotations

public static JSR330QualifyingMetadata createFromAnnotations(Annotation[] annotations)
Extract qualifiers from annotations. Because this method is used to get qualifier metadata for injection points and beans, Any is not implicitly added.

Parameters:
annotations - The annotations from a observer, injection point, or bean
Returns:
An object containing metadata regarding qualifiers from the provided annotations

createSetFromAnnotations

public static Set<Annotation> createSetFromAnnotations(Annotation[] annotations)

getQualifiers

public Annotation[] getQualifiers()
Specified by:
getQualifiers in interface QualifyingMetadata

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

filter

public QualifyingMetadata filter(Annotation annotation)
Description copied from interface: QualifyingMetadata
Return a copy of this object with the given annotation filtered out.

Specified by:
filter in interface QualifyingMetadata
Parameters:
annotation - A qualifier to be filtered out.
Returns:
A copy of this object less the filtered annotation.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.