Examples of AnnotatedTypeIdentifier


Examples of org.jboss.weld.annotated.slim.AnnotatedTypeIdentifier

        Assert.assertEquals(factory1.produce(), factory2.produce());
    }

    @Test
    public void testLoadingNotKnownAnnotatedType() throws ClassNotFoundException, IOException {
        AnnotatedTypeIdentifier identifier = AnnotatedTypeIdentifier.forBackedAnnotatedType(manager.getContextId(), UnknownClass.class, UnknownClass.class, manager.getId());
        SerializationProxy<?> proxy = new SerializationProxy<Object>(identifier);
        Object result = Utils.deserialize(Utils.serialize(proxy));
        Assert.assertNotNull(result);
        Assert.assertTrue(result instanceof AnnotatedType<?>);
    }
View Full Code Here

Examples of org.jboss.weld.annotated.slim.AnnotatedTypeIdentifier

    public static <X> UnbackedAnnotatedType<X> additionalAnnotatedType(String contextId, AnnotatedType<X> source, String bdaId, String suffix, SharedObjectCache cache) {
        return new UnbackedAnnotatedType<X>(source, AnnotatedTypeIdentifier.of(contextId, bdaId, source.getJavaClass().getName(), suffix, false), cache);
    }

    public static <X> UnbackedAnnotatedType<X> modifiedAnnotatedType(SlimAnnotatedType<X> originalType, AnnotatedType<X> source, SharedObjectCache cache) {
        AnnotatedTypeIdentifier identifier = AnnotatedTypeIdentifier.forModifiedAnnotatedType(originalType.getIdentifier());
        return new UnbackedAnnotatedType<X>(source, identifier, cache);
    }
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.