org.apache.felix.ipojo.manipulation
Class InnerClassManipulator

java.lang.Object
  extended by org.apache.felix.ipojo.manipulation.InnerClassManipulator

public class InnerClassManipulator
extends Object

Manipulates inner class allowing outer class access. The manipulated class has access to managed field of the outer class.

Author:
Felix Project Team

Constructor Summary
InnerClassManipulator(String classname, Set fields)
          Creates an inner class manipulator.
 
Method Summary
 byte[] manipulate(byte[] in)
          Manipulate the inner class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InnerClassManipulator

public InnerClassManipulator(String classname,
                             Set fields)
Creates an inner class manipulator.

Parameters:
classname - : class name
fields - : fields
Method Detail

manipulate

public byte[] manipulate(byte[] in)
                  throws IOException
Manipulate the inner class.

Parameters:
in - input (i.e. original) class
Returns:
manipulated class
Throws:
IOException - the class cannot be read correctly


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