org.apache.felix.ipojo.manipulator.visitor.writer
Class ManipulatedResultWriter

java.lang.Object
  extended by org.apache.felix.ipojo.manipulator.visitor.writer.ManipulatedResultWriter
All Implemented Interfaces:
ManipulationResultVisitor

public class ManipulatedResultWriter
extends java.lang.Object
implements ManipulationResultVisitor

Gather manipulated bytecode.

Author:
Felix Project Team

Constructor Summary
ManipulatedResultWriter(org.apache.felix.ipojo.metadata.Element component)
           
 
Method Summary
 java.util.Map<java.lang.String,byte[]> getResources()
           
 void visitClassStructure(org.apache.felix.ipojo.metadata.Element structure)
          Called once per visitor with the class' structure discovered during manipulation.
 void visitEnd()
          Called when all resources from this manipulation result have been processed.
 void visitManipulatedResource(java.lang.String type, byte[] resource)
          Accept a manipulated resource (main component class or inner classes).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManipulatedResultWriter

public ManipulatedResultWriter(org.apache.felix.ipojo.metadata.Element component)
Method Detail

visitClassStructure

public void visitClassStructure(org.apache.felix.ipojo.metadata.Element structure)
Description copied from interface: ManipulationResultVisitor
Called once per visitor with the class' structure discovered during manipulation.

Specified by:
visitClassStructure in interface ManipulationResultVisitor
Parameters:
structure - Component's structure (discovered during manipulation, not the data from metadata.xml)

visitManipulatedResource

public void visitManipulatedResource(java.lang.String type,
                                     byte[] resource)
Description copied from interface: ManipulationResultVisitor
Accept a manipulated resource (main component class or inner classes).

Specified by:
visitManipulatedResource in interface ManipulationResultVisitor
Parameters:
type - type name
resource - manipulated bytecode

visitEnd

public void visitEnd()
Description copied from interface: ManipulationResultVisitor
Called when all resources from this manipulation result have been processed.

Specified by:
visitEnd in interface ManipulationResultVisitor

getResources

public java.util.Map<java.lang.String,byte[]> getResources()


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