Package org.apache.geronimo.gbean.annotation

Examples of org.apache.geronimo.gbean.annotation.AnnotationGBeanInfoBuilder


        assertEquals(AnnotatedWithExplicitJ2EETypeGBean.class.getSimpleName(), beanInfo.getName());
        assertEquals("type", beanInfo.getJ2eeType());
    }
   
    public void testDefaultConstructorGBean() throws Exception {
        AnnotationGBeanInfoBuilder builder = new AnnotationGBeanInfoBuilder(DefaultConstructorGBean.class);
        GBeanInfo beanInfo = builder.buildGBeanInfo();
       
        assertTrue(beanInfo.getConstructor().getAttributeNames().isEmpty());
    }
View Full Code Here


        executeThrowGBAETest(CollectionNotGenerifiedGBean.class);
    }

    private void executeThrowGBAETest(Class gbeanClass) {
        try {
            AnnotationGBeanInfoBuilder builder = new AnnotationGBeanInfoBuilder(gbeanClass);
            builder.buildGBeanInfo();
            fail();
        } catch (GBeanAnnotationException e) {
        }
    }
View Full Code Here

        Map<String, GBeanData> activationSpecInfos = new HashMap<String, GBeanData>();
        for (MessageListener messageListener : messageListeners) {
            String messageListenerInterface = messageListener.getMessageListenerType();
            ActivationSpec activationSpec = messageListener.getActivationSpec();
            String activationSpecClassName = activationSpec.getActivationSpecClass();
            GBeanInfoBuilder infoBuilder = new GBeanInfoBuilder(ActivationSpecWrapperGBean.class, new AnnotationGBeanInfoBuilder(ActivationSpecWrapperGBean.class).buildGBeanInfo());
            Set<String> ignore = Collections.singleton("resourceAdapter");
            setUpDynamicGBean(activationSpecClassName, infoBuilder, ignore, bundle, true);


            GBeanInfo gbeanInfo = infoBuilder.getBeanInfo();
View Full Code Here

    }

    public void testGBeanFormatReBinding() throws Exception {
        setUpJcaContext();
        configurationData.addGBean("resourceSource", new AnnotationGBeanInfoBuilder(MockResourceSource.class).buildGBeanInfo());

        configurationManager.loadConfiguration(configurationData);
        configurationManager.startConfiguration(configurationData.getId());

        InitialContext ctx = new InitialContext(contextEnv);
View Full Code Here

    }

    public void testGBeanFormatReBinding() throws Exception {
        setUpJcaContext();
        configurationData.addGBean("resourceSource", new AnnotationGBeanInfoBuilder(MockResourceSource.class).buildGBeanInfo());

        configurationManager.loadConfiguration(configurationData);
        configurationManager.startConfiguration(configurationData.getId());

        InitialContext ctx = new InitialContext(contextEnv);
View Full Code Here

TOP

Related Classes of org.apache.geronimo.gbean.annotation.AnnotationGBeanInfoBuilder

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.