public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { Flow<PlasticMethod> methods = findResetMethods(plasticClass); if (!methods.isEmpty()) { if (!plasticClass.isInterfaceImplemented(PageResetListener.class)) { plasticClass.introduceInterface(PageResetListener.class); plasticClass.onConstruct(REGISTER_AS_LISTENER); } invokeMethodsOnPageReset(plasticClass, methods); } }
boolean superClassImplementsPageLifecycle = plasticClass.isInterfaceImplemented(PageLifecycleListener.class); if (!superClassImplementsPageLifecycle && plasticClass.isInterfaceImplemented(PageLifecycleListener.class))