Examples of MethodFilter


Examples of org.apache.tapestry.services.MethodFilter

        return String.format("ComponentLifecycleMethodWorker[%s]", _methodAnnotation.getName());
    }

    public void transform(final ClassTransformation transformation, MutableComponentModel model)
    {
        MethodFilter filter = new MethodFilter()
        {
            public boolean accept(MethodSignature signature)
            {
                // These methods get added to base classes and otherwise fall into this filter. If
                // we don't
View Full Code Here

Examples of org.apache.tapestry.services.MethodFilter

    private final String[] _empty = new String[0];

    public void transform(final ClassTransformation transformation, MutableComponentModel model)
    {
        MethodFilter filter = new MethodFilter()
        {
            public boolean accept(MethodSignature signature)
            {
                return signature.getMethodName().startsWith("on")
                        || transformation.getMethodAnnotation(signature, OnEvent.class) != null;
View Full Code Here

Examples of org.apache.tapestry.services.MethodFilter

            {
                // Can't think of a way to do this without duplicating some code out of
                // InternalClassTransformationImpl

                List<MethodSignature> result = newList();
                MethodFilter filter = (MethodFilter) EasyMock.getCurrentArguments()[0];

                for (MethodSignature sig : signatures)
                {
                    if (filter.accept(sig)) result.add(sig);
                }

                // We don't have to sort them for testing purposes. Usually there's just going to be
                // one in there.
View Full Code Here

Examples of org.apache.tapestry5.services.MethodFilter

        final ClassTransformation ct = createClassTransformation(AnnotatedPage.class, logger);

        // Duplicates, somewhat less efficiently, the logic in find_methods_with_annotation().

        MethodFilter filter = new MethodFilter()
        {
            public boolean accept(TransformMethodSignature signature)
            {
                return ct.getMethodAnnotation(signature, SetupRender.class) != null;
            }
View Full Code Here

Examples of org.apache.tapestry5.services.MethodFilter

    {
        Logger logger = mockLogger();

        replay();

        MethodFilter filter = new MethodFilter()
        {
            public boolean accept(TransformMethodSignature signature)
            {
                return true;
            }
View Full Code Here

Examples of org.apache.tapestry5.services.MethodFilter

        final ClassTransformation ct = createClassTransformation(AnnotatedPage.class, logger);

        // Duplicates, somewhat less efficiently, the logic in find_methods_with_annotation().

        MethodFilter filter = new MethodFilter()
        {
            public boolean accept(TransformMethodSignature signature)
            {
                return ct.getMethodAnnotation(signature, SetupRender.class) != null;
            }
View Full Code Here

Examples of org.apache.tapestry5.services.MethodFilter

    {
        Logger logger = mockLogger();

        replay();

        MethodFilter filter = new MethodFilter()
        {
            public boolean accept(TransformMethodSignature signature)
            {
                return true;
            }
View Full Code Here

Examples of org.apache.tapestry5.services.MethodFilter

        return String.format("ComponentLifecycleMethodWorker[%s]", methodAnnotation.getName());
    }

    public void transform(final ClassTransformation transformation, MutableComponentModel model)
    {
        MethodFilter filter = new MethodFilter()
        {
            public boolean accept(TransformMethodSignature signature)
            {
                // These methods get added to base classes and otherwise fall into this filter. If
                // we don't
View Full Code Here

Examples of org.apache.tapestry5.services.MethodFilter

        this.methodAlias = methodAlias;
    }

    public void transform(final ClassTransformation transformation, MutableComponentModel model)
    {
        MethodFilter filter = new MethodFilter()
        {
            public boolean accept(TransformMethodSignature signature)
            {
                if (signature.getMethodName().equals(methodAlias))
                    return true;
View Full Code Here

Examples of org.apache.tapestry5.services.MethodFilter

        final ClassTransformation ct = createClassTransformation(AnnotatedPage.class, logger);

        // Duplicates, somewhat less efficiently, the logic in find_methods_with_annotation().

        MethodFilter filter = new MethodFilter()
        {
            public boolean accept(TransformMethodSignature signature)
            {
                return ct.getMethodAnnotation(signature, SetupRender.class) != null;
            }
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.