public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { for (PlasticMethod method : plasticClass.getMethodsWithAnnotation(DiscardAfter.class)) { method.addAdvice(advice); } } }
@Override public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { for (PlasticMethod method : plasticClass.getMethodsWithAnnotation(CommitAfter.class)) { method.addAdvice(advice); } } }
@Override public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { for (PlasticMethod method : plasticClass.getMethodsWithAnnotation(CommitAfter.class)) { method.addAdvice(advice); } } }
public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { for (PlasticMethod method : plasticClass.getMethodsWithAnnotation(HeartbeatDeferred.class)) { deferMethodInvocations(method); } }
public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { List<PlasticMethod> methods = plasticClass.getMethodsWithAnnotation(Cached.class); for (PlasticMethod method : methods) { validateMethod(method); adviseMethod(plasticClass, method); } }
public void transform(PlasticClass componentClass, TransformationSupport support, MutableComponentModel model) { processClassAnnotationAtSetupRenderPhase(componentClass, model); for (PlasticMethod m : componentClass.getMethodsWithAnnotation(Import.class)) { decorateMethod(componentClass, model, m); } }
@Override public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { for (final PlasticMethod method : plasticClass.getMethodsWithAnnotation(CommitAfter.class)) { PersistenceContext annotation = method.getAnnotation(PersistenceContext.class); method.addAdvice(methodAdvices.get(annotation == null ? null : annotation.unitName())); } } }
public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { List<PlasticMethod> methods = plasticClass.getMethodsWithAnnotation(Log.class); if (methods.isEmpty()) { return; } final MethodAdvice loggingAdvice = new LoggingAdvice(model.getLogger(), exceptionTracker); for (PlasticMethod method : methods) { method.addAdvice(loggingAdvice); } } }
@Override public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { for (final PlasticMethod method : plasticClass .getMethodsWithAnnotation(CommitAfter.class)) { PersistenceContext annotation = method.getAnnotation(PersistenceContext.class); MethodAdvice advice = annotation == null ? shared : new CommitAfterMethodAdvice(manager); method.addAdvice(advice); } } }
public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { for (PlasticMethod method : plasticClass.getMethodsWithAnnotation(ReverseStrings.class)) { method.addAdvice(advice); } } }
public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { for (PlasticMethod method : plasticClass.getMethodsWithAnnotation(Operation.class)) { Operation annotation = method.getAnnotation(Operation.class); method.addAdvice(advisor.createAdvice(annotation.value())); } } }