Package org.more.classcode.aop

Examples of org.more.classcode.aop.AopClassConfig.toClass()


        HasorBindInfoProviderAdapter<T> infoAdapter = (HasorBindInfoProviderAdapter<T>) bindInfo;
        try {
            AopClassConfig cc = infoAdapter.buildEngine(this.aopList);
            Class<?> newType = null;
            if (cc.hasChange() == true) {
                newType = cc.toClass();
            } else {
                newType = cc.getSuperClass();
            }
            return (T) createObject((Class<T>) newType, infoAdapter);
        } catch (Exception e) {
View Full Code Here


    //
    public static void main(String[] args) throws Exception {
        AopClassConfig aCC = new AopClassConfig(Bean.class);
        aCC.addAopInterceptor(new TestAopInterceptor());
        //
        PropertyClassConfig pCC = new PropertyClassConfig(aCC.toClass());
        pCC.addProperty("name", new TestSimplePropertyDelegate(String.class));
        //
        MethodClassConfig mCC = new MethodClassConfig(pCC.toClass());
        mCC.addDelegate(List.class, new DefaultMethodDelegate());
        //
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.