Package ch.bbv.fsm.impl.internal.aop

Examples of ch.bbv.fsm.impl.internal.aop.MethodCallInterceptor


     * @param obj
     * @return
     */
    @SuppressWarnings("unchecked")
    public static <T> T from(final T obj) {
        final MethodCallInterceptor interceptor = new MethodCallInterceptor(obj);
        final Class<?> clazz = obj.getClass();
        final Enhancer enhancer = new Enhancer();
        enhancer.setSuperclass(clazz);
        enhancer.setCallback(interceptor);
        final T instance = (T) enhancer.create();
View Full Code Here

TOP

Related Classes of ch.bbv.fsm.impl.internal.aop.MethodCallInterceptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.