Package org.apache.tapestry.services

Examples of org.apache.tapestry.services.MethodFilter


        _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


        // If no default binding expression provided in the annotation, then look for a default
        // binding method to provide the binding.

        final String methodName = "default" + InternalUtils.capitalize(parameterName);

        MethodFilter filter = new MethodFilter()
        {
            public boolean accept(TransformMethodSignature signature)
            {
                return signature.getParameterTypes().length == 0
                        && signature.getMethodName().equals(methodName);
View Full Code Here

        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

        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

        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

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

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

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

        // If no default binding expression provided in the annotation, then look for a default
        // binding method to provide the binding.

        final String methodName = "default" + InternalUtils.capitalize(parameterName);

        MethodFilter filter = new MethodFilter()
        {
            public boolean accept(MethodSignature signature)
            {
                return signature.getParameterTypes().length == 0
                        && signature.getMethodName().equals(methodName);
View Full Code Here

        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

        _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

            {
                // 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

TOP

Related Classes of org.apache.tapestry.services.MethodFilter

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.