| Package | Description |
|---|---|
| org.apache.felix.scrplugin | |
| org.apache.felix.scrplugin.annotations | |
| org.apache.felix.scrplugin.helper | |
| org.apache.felix.scrplugin.xml |
| Modifier and Type | Method and Description |
|---|---|
private ComponentContainer |
SCRDescriptorGenerator.createComponent(ClassDescription desc,
IssueLog iLog)
Create the SCR objects based on the descriptions
|
Result |
SCRDescriptorGenerator.execute()
Actually generates the Declarative Services and Metatype descriptors
scanning the java sources provided by the
SCRDescriptorGenerator.setProject(Project) |
private void |
SCRDescriptorGenerator.generateMethods(ComponentContainer container) |
| Modifier and Type | Method and Description |
|---|---|
void |
AnnotationProcessor.process(ScannedClass scannedClass,
ClassDescription describedClass)
Processes annotations from the provided scanned class and adds
descriptions to the object model based on the read annotations.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ClassModifier.addMethods(java.lang.String className,
java.lang.String referenceName,
java.lang.String referenceType,
java.lang.String fieldName,
java.lang.String fieldType,
boolean createBind,
boolean createUnbind,
java.lang.ClassLoader classLoader,
java.lang.String outputDirectory,
Log logger)
Add bind/unbind methods
|
private void |
Validator.checkLifecycleMethod(java.lang.String methodName,
boolean isActivate,
boolean isSpecified)
Check for existence of lifecycle methods.
|
private java.util.List<ScannedAnnotation> |
ClassScanner.extractAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.Class<?> annotatedClass)
Extract annotations
|
static Validator.MethodResult |
Validator.findLifecycleMethod(Project project,
ComponentContainer container,
java.lang.String methodName,
boolean isActivate)
Find a lifecycle methods.
|
static Validator.MethodResult |
Validator.findMethod(Project project,
Options options,
ClassDescription cd,
ReferenceDescription ref,
java.lang.String methodName)
Find the method and the required spec version
|
private java.util.Map<java.lang.String,ClassDescription> |
ClassScanner.getComponentDescriptors()
Returns a map of component descriptors which may be extended by the java
sources.
|
ClassDescription |
ClassScanner.getDescription(java.lang.Class<?> clazz)
Get a description for the class
|
private static java.lang.reflect.Method |
Validator.getMethod(Project project,
ComponentContainer container,
java.lang.String name,
java.lang.String[] sig) |
private void |
ClassScanner.process(java.lang.Class<?> annotatedClass,
Source src,
java.util.List<ClassDescription> result)
Process a class
|
void |
AnnotationProcessorManager.process(ScannedClass scannedClass,
ClassDescription describedClass) |
private ClassDescription |
ClassScanner.processClass(java.lang.Class<?> annotatedClass,
java.lang.String location)
Scan a single class.
|
private void |
ClassScanner.readServiceComponentDescriptor(java.io.InputStream file,
java.lang.String location)
Parses the descriptors read from the given input stream.
|
java.util.List<ClassDescription> |
ClassScanner.scanSources()
Scan all source class files for annotations and process them.
|
void |
Validator.validate()
Validate the component description.
|
private java.lang.String |
Validator.validateMethod(ReferenceDescription ref,
java.lang.String methodName,
boolean componentIsAbstract) |
private void |
Validator.validateReference(ReferenceDescription ref,
boolean componentIsAbstract)
Validate the reference.
|
private void |
Validator.validateService(ServiceDescription service)
Validate the service and its interfaces
If errors occur a message is added to the issues list,
warnings can be added to the warnings list.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
ComponentDescriptorIO.generateDescriptorFiles(DescriptionContainer module,
Options options,
Log logger)
Generate descriptor file(s)
|
static java.util.List<java.lang.String> |
MetaTypeIO.generateDescriptors(DescriptionContainer module,
Project project,
Options options,
Log logger) |
static java.util.List<ClassDescription> |
ComponentDescriptorIO.read(java.io.InputStream file,
java.lang.ClassLoader classLoader,
IssueLog iLog,
java.lang.String location) |
private static void |
MetaTypeIO.write(DescriptionContainer metaData,
java.util.List<ComponentContainer> components,
java.io.File file,
java.lang.String localization)
Generate the xml top level element and start streaming
the meta data.
|