private InstrumentationActions calculateTransformationParameters ( byte [ ] classfileBuffer , Configuration configuration ) { DiscoveryClassVisitor discoveryClassVisitor = new DiscoveryClassVisitor ( configuration ) ; new ClassReader ( classfileBuffer ) . accept ( discoveryClassVisitor , 0 ) ; return discoveryClassVisitor . getTransformationParameters ( ) . build ( ) ; }
Based on the structure of the class and the supplied configuration determine the concrete instrumentation actions for the class .