
net.imadz.lifecycle.meta.builder.impl.RelationalEventCallbackObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Lifecycle Show documentation
Show all versions of Lifecycle Show documentation
Lifecycle AOP Framework. Enabling describe enhanced State Diagram with Java language,
and processing relational Lifecycle constraints(including: state validations, transitions validations),
concurrency, lifecycle callbacks, lifecycle events implicitely with Lifecycle Engine.
This engine can be used by class load time (Java Instrumentation) or compile time (Lifecycle-StaticWeaver-maven-plugin).
package net.imadz.lifecycle.meta.builder.impl;
import java.lang.reflect.Method;
import net.imadz.util.Readable;
public class RelationalEventCallbackObject extends EventCallbackObject {
private final Readable> readAccessor;
public RelationalEventCallbackObject(Class> eventClass,
Readable> readAccessor, Method method) {
super(eventClass, method);
this.readAccessor = readAccessor;
}
@Override
protected Object evaluateTarget(Object target) {
return this.readAccessor.read(target);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy