aQute.bnd.component
Class AnnotationReader

java.lang.Object
  extended by aQute.bnd.osgi.ClassDataCollector
      extended by aQute.bnd.component.AnnotationReader

public class AnnotationReader
extends ClassDataCollector

fixup any unbind methods To declare no unbind method, the value "-" must be used. If not specified, the name of the unbind method is derived from the name of the annotated bind method. If the annotated method name begins with set, that is replaced with unset to derive the unbind method name. If the annotated method name begins with add, that is replaced with remove to derive the unbind method name. Otherwise, un is prefixed to the annotated method name to derive the unbind method name.


Field Summary
static String FELIX_1_2
           
static Version V1_0
           
static Version V1_1
           
static Version V1_2
           
static Version V1_3
           
 
Method Summary
 void annotation(Annotation annotation)
           
 void classBegin(int access, Descriptors.TypeRef name)
          Are called during class parsing
protected  void doActivate()
           
protected  void doComponent(Component comp, Annotation annotation)
           
protected  void doDeactivate()
           
protected  void doModified()
           
protected  void doReference(Reference reference, Annotation raw)
           
 void extendsClass(Descriptors.TypeRef name)
           
static aQute.bnd.component.ComponentDef getDefinition(Clazz c, Analyzer analyzer)
           
 void implementsInterfaces(Descriptors.TypeRef[] interfaces)
           
 void method(Clazz.MethodDef method)
           
protected  String referredMethod(Analyzer analyzer, aQute.bnd.component.ReferenceDef rdef, String value, String... matches)
           
 
Methods inherited from class aQute.bnd.osgi.ClassDataCollector
addReference, annotationDefault, classEnd, classStart, classStart, constant, deprecated, enclosingMethod, field, innerClass, memberEnd, parameter, referenceMethod, referTo, signature, version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

V1_0

public static final Version V1_0

V1_1

public static final Version V1_1

V1_2

public static final Version V1_2

V1_3

public static final Version V1_3

FELIX_1_2

public static final String FELIX_1_2
See Also:
Constant Field Values
Method Detail

getDefinition

public static aQute.bnd.component.ComponentDef getDefinition(Clazz c,
                                                             Analyzer analyzer)
                                                      throws Exception
Throws:
Exception

referredMethod

protected String referredMethod(Analyzer analyzer,
                                aQute.bnd.component.ReferenceDef rdef,
                                String value,
                                String... matches)
Parameters:
analyzer -
rdef -

annotation

public void annotation(Annotation annotation)
Overrides:
annotation in class ClassDataCollector

doActivate

protected void doActivate()

doDeactivate

protected void doDeactivate()

doModified

protected void doModified()

doReference

protected void doReference(Reference reference,
                           Annotation raw)
                    throws Exception
Parameters:
annotation -
Throws:
Exception

doComponent

protected void doComponent(Component comp,
                           Annotation annotation)
                    throws Exception
Parameters:
annotation -
Throws:
Exception

classBegin

public void classBegin(int access,
                       Descriptors.TypeRef name)
Are called during class parsing

Overrides:
classBegin in class ClassDataCollector

implementsInterfaces

public void implementsInterfaces(Descriptors.TypeRef[] interfaces)
Overrides:
implementsInterfaces in class ClassDataCollector

method

public void method(Clazz.MethodDef method)
Overrides:
method in class ClassDataCollector

extendsClass

public void extendsClass(Descriptors.TypeRef name)
Overrides:
extendsClass in class ClassDataCollector


Copyright © 2014 aQute SARL. All rights reserved.