Examples of DescribedLocation


Examples of org.apache.tapestry.util.DescribedLocation

        MethodAnnotationEnhancementWorker methodWorker = (MethodAnnotationEnhancementWorker) methodWorkerc
                .getMock();

        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

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

        ClassAnnotationEnhancementWorker classWorker = (ClassAnnotationEnhancementWorker) newMock(ClassAnnotationEnhancementWorker.class);

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

        classWorker.performEnhancement(op, spec, DeprecatedBean.class, location);
View Full Code Here

Examples of org.apache.tapestry.util.DescribedLocation

        ClassAnnotationEnhancementWorker classWorker = (ClassAnnotationEnhancementWorker) classWorkerc
                .getMock();

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

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

        classWorker.performEnhancement(op, spec, DeprecatedBean.class, location);
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
                    .methodAnnotation(annotation, method));
            worker.performEnhancement(op, spec, method, location);
        }
        catch (Exception ex)
        {
View Full Code Here

Examples of org.apache.tapestry.util.DescribedLocation

        verify();

        IAssetSpecification as = spec.getAsset("globalStylesheet");
        assertEquals("/style/global.css", as.getPath());
        assertEquals(new DescribedLocation(r, l.toString()), as.getLocation());
        assertEquals("globalStylesheet", as.getPropertyName());
    }
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

    }

    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

    private IAsset findAsset(String path, String description)
    {
        IAsset asset = null;
        if ( !HiveMind.isBlank(path) )
        {
            Location location = new DescribedLocation(new URLResource(path), description);
            asset = _assetSource.findAsset(null, path, null, location);
        }
        return asset;
    }
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
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.