Examples of component()


Examples of org.apache.camel.URIField.component()

        URIField anno = null;
        for (final Field field : fields) {
            anno = field.getAnnotation(URIField.class);
            String key = anno == null ? field.getName()
                : (EndpointConfiguration.URI_QUERY.equals(anno.parameter()) ? anno.parameter() : anno.component());
            map.put(key, field);
        }

        // Log standard URI components and remove them from the map
        logConfigurationField(config, map, EndpointConfiguration.URI_SCHEME, true);
View Full Code Here

Examples of org.apache.camel.URIField.component()

        if (field == null) {
            return;
        }
        URIField anno = field.getAnnotation(URIField.class);
        if (anno != null) {
            LOG.info("  @URIField(component = \"{}\", parameter = \"{}\")", anno.component(), anno.parameter());
        }
        LOG.info("  {} {}={}", new Object[] {field.getType().getName(), field.getName(), config.getParameter(field.getName())});
    }

    private static class ConfiguredComponent implements Component {
View Full Code Here

Examples of org.apache.camel.URIField.component()

   
            Field found = null;
            URIField anno = null;
            for (final Field field : fields) {
                anno = field.getAnnotation(URIField.class);
                if (anno == null ? field.getName().equals(name) : anno.component().equals(name)
                    || (anno.component().equals(EndpointConfiguration.URI_QUERY) && anno.parameter().equals(name))) {
   
                    found = field;
                    LOG.trace("Found field {}.{} as candidate for parameter {}",
                        new Object[] {clazz.getName(), found != null ? found.getName() : "<null>", name});
View Full Code Here

Examples of org.apache.camel.URIField.component()

            Field found = null;
            URIField anno = null;
            for (final Field field : fields) {
                anno = field.getAnnotation(URIField.class);
                if (anno == null ? field.getName().equals(name) : anno.component().equals(name)
                    || (anno.component().equals(EndpointConfiguration.URI_QUERY) && anno.parameter().equals(name))) {
   
                    found = field;
                    LOG.trace("Found field {}.{} as candidate for parameter {}",
                        new Object[] {clazz.getName(), found != null ? found.getName() : "<null>", name});
                    return found;
View Full Code Here

Examples of org.apache.tapestry.annotations.OnEvent.component()

        OnEvent annotation = ct.getMethodAnnotation(new MethodSignature("handler"), OnEvent.class);

        // Check that the attributes of the annotation match the expectation.

        assertEquals(annotation.value(), "fred");
        assertEquals(annotation.component(), "alpha");

        verify();
    }

    @Test
View Full Code Here

Examples of org.apache.tapestry.annotations.OnEvent.component()

                OnEvent.class);

        // Check that the attributes of the annotation match the expectation.

        assertEquals(annotation.value(), "fred");
        assertEquals(annotation.component(), "alpha");

        verify();
    }

    @Test
View Full Code Here

Examples of org.apache.tapestry.annotations.OnEvent.component()

        OnEvent annotation = ct.getMethodAnnotation(new TransformMethodSignature("handler"), OnEvent.class);

        // Check that the attributes of the annotation match the expectation.

        assertEquals(annotation.value(), "fred");
        assertEquals(annotation.component(), "alpha");

        verify();
    }

    @Test
View Full Code Here

Examples of org.apache.tapestry.annotations.OnEvent.component()

        // Check that the attributes of the annotation match the expectation.

        assertEquals(annotation.value(), new String[]
        { "fred", "barney" });
        assertEquals(annotation.component(), new String[]
        { "alpha", "beta" });

        verify();
    }
View Full Code Here

Examples of org.apache.tapestry.annotations.OnEvent.component()

        OnEvent annotation = ct.getMethodAnnotation(new TransformMethodSignature("handler"), OnEvent.class);

        // Check that the attributes of the annotation match the expectation.

        assertEquals(annotation.value(), "fred");
        assertEquals(annotation.component(), "alpha");

        verify();
    }

    @Test
View Full Code Here

Examples of org.apache.tapestry.annotations.OnEvent.component()

        // Check that the attributes of the annotation match the expectation.

        assertEquals(annotation.value(), new String[]
        { "fred", "barney" });
        assertEquals(annotation.component(), new String[]
        { "alpha", "beta" });

        verify();
    }
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.