org.apache.felix.scrplugin.helper
Class ClassModifier

java.lang.Object
  extended by org.apache.felix.scrplugin.helper.ClassModifier

public abstract class ClassModifier
extends java.lang.Object

Helper class for injecting/generating accessor methods for unary references.


Constructor Summary
ClassModifier()
           
 
Method Summary
static void addMethods(java.lang.String className, java.lang.String referenceName, java.lang.String fieldName, java.lang.String typeName, boolean createBind, boolean createUnbind, java.lang.ClassLoader classLoader, java.lang.String outputDirectory, Log logger)
          Add bind/unbind methods
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassModifier

public ClassModifier()
Method Detail

addMethods

public static void addMethods(java.lang.String className,
                              java.lang.String referenceName,
                              java.lang.String fieldName,
                              java.lang.String typeName,
                              boolean createBind,
                              boolean createUnbind,
                              java.lang.ClassLoader classLoader,
                              java.lang.String outputDirectory,
                              Log logger)
                       throws SCRDescriptorException
Add bind/unbind methods

Parameters:
className - The class name in which the methods are injected
referenceName - Name of the reference
fieldName - Name of the field
typeName - Name of the type
createBind - Name of the bind method or null
createUnbind - Name of the unbind method or null
outputDirectory - Output directory where the class file is stored
Throws:
SCRDescriptorException


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.