{
public void transform(ClassTransformation transformation, MutableComponentModel model)
{
transformation.addImplementedInterface(ProcessStringAndInteger.class);
TransformMethod targetMethod = transformation.getOrCreateMethod(new TransformMethodSignature(
Modifier.PRIVATE, "java.lang.String", "privateMethod", new String[]
{ "java.lang.String", "int" }, null));
final MethodAccess targetMethodAccess = targetMethod.getAccess();
TransformMethodSignature processSig = new TransformMethodSignature(Modifier.PUBLIC, "java.lang.String",
"process", new String[]
{ "java.lang.String", "int" }, null);
TransformMethod process = transformation.getOrCreateMethod(processSig);
process.addAdvice(new ComponentMethodAdvice()
{
public void advise(ComponentMethodInvocation invocation)
{
// Don't even bother with proceed() this time, which is OK (but
// somewhat rare).