Examples of DescribedLocation


Examples of org.apache.tapestry.util.DescribedLocation

    }

    public static Location buildLocationForAnnotation(Method method, Annotation annotation,
            Resource classResource)
    {
        return new DescribedLocation(classResource, AnnotationMessages.methodAnnotation(
                annotation,
                method));
    }
View Full Code Here

Examples of org.apache.tapestry.util.DescribedLocation

        if (worker == null)
            return;

        try
        {
            Location location = new DescribedLocation(classResource, AnnotationMessages
                    .classAnnotation(annotation, clazz));

            worker.performEnhancement(op, spec, clazz, location);
        }
        catch (Exception ex)
View Full Code Here

Examples of org.apache.tapestry.util.DescribedLocation

        if (worker == null)
            return;

        try
        {
            Location location = new DescribedLocation(classResource, AnnotationMessages.classAnnotation(annotation, clazz));

            worker.performEnhancement(op, spec, clazz, location);
        }
        catch (Exception ex)
        {
View Full Code Here

Examples of org.apache.tapestry.util.DescribedLocation

    private DescribedLocation newClassLocation(Class baseClass, Class annotationClass)
    {
        Resource classResource = newResource(baseClass);
        Annotation annotation = baseClass.getAnnotation(annotationClass);

        return new DescribedLocation(classResource, AnnotationMessages.classAnnotation(
                annotation,
                baseClass));
    }
View Full Code Here

Examples of org.apache.tapestry.util.DescribedLocation

        EnhancementOperation op = newOp(DeprecatedBean.class);
        IComponentSpecification spec = newSpec();

        ClassAnnotationEnhancementWorker classWorker = newMock(ClassAnnotationEnhancementWorker.class);

        DescribedLocation location = newClassLocation(DeprecatedBean.class, Deprecated.class);

        classWorker.performEnhancement(op, spec, DeprecatedBean.class, location);

        replay();
View Full Code Here

Examples of org.apache.tapestry.util.DescribedLocation

        ClassAnnotationEnhancementWorker classWorker = newMock(ClassAnnotationEnhancementWorker.class);

        Throwable t = new RuntimeException("Simulated failure.");

        DescribedLocation location = newClassLocation(DeprecatedBean.class, Deprecated.class);

        classWorker.performEnhancement(op, spec, DeprecatedBean.class, location);
        expectLastCall().andThrow(t);

        log.error("An error occured processing annotation @java.lang.Deprecated() of "
View Full Code Here

Examples of org.apache.tapestry.util.DescribedLocation

        MethodAnnotationEnhancementWorker methodWorker = (MethodAnnotationEnhancementWorker) newMock(MethodAnnotationEnhancementWorker.class);

        Method m = findMethod(AnnotatedPage.class, "getInjectedObject");

        DescribedLocation location = newMethodLocation(
                resolver,
                AnnotatedPage.class,
                m,
                InjectObject.class);
View Full Code Here

Examples of org.apache.tapestry.util.DescribedLocation

    protected DescribedLocation newMethodLocation(ClassResolver resolver, Class baseClass,
            Method m, Class annotationClass)
    {
        Resource classResource = newResource(resolver, baseClass);

        return new DescribedLocation(classResource, AnnotationMessages.methodAnnotation(m
                .getAnnotation(annotationClass), m));
    }
View Full Code Here

Examples of org.apache.tapestry.util.DescribedLocation

            Class annotationClass)
    {
        Resource classResource = newResource(resolver, baseClass);
        Annotation annotation = baseClass.getAnnotation(annotationClass);

        return new DescribedLocation(classResource, AnnotationMessages.classAnnotation(
                annotation,
                baseClass));
    }
View Full Code Here

Examples of org.apache.tapestry.util.DescribedLocation

        MethodAnnotationEnhancementWorker methodWorker = (MethodAnnotationEnhancementWorker) newMock(MethodAnnotationEnhancementWorker.class);

        Method m = findMethod(AnnotatedPageSubclass.class, "getInjectedObject");

        DescribedLocation location = newMethodLocation(
                resolver,
                AnnotatedPageSubclass.class,
                m,
                InjectObject.class);
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.