Package org.nanocontainer.aop

Examples of org.nanocontainer.aop.ClassPointcut


        assertTrue(cut.picks(equals));
        assertFalse(cut.picks(subFooMethod));
    }

    public void testCustomClassPointcuts() {
        ClassPointcut picksFoo = new ClassPointcut() {
            public boolean picks(Class clazz) {
                return clazz.equals(Foo.class);
            }
        };
        ClassPointcut picksBar = new ClassPointcut() {
            public boolean picks(Class clazz) {
                return clazz.equals(Bar.class);
            }
        };
        ClassPointcut cut = cuts.union(picksFoo, picksBar);
        assertTrue(cut.picks(Foo.class));
        assertTrue(cut.picks(Bar.class));
        assertFalse(cut.picks(FooBar.class));
    }
View Full Code Here

TOP

Related Classes of org.nanocontainer.aop.ClassPointcut

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.