Examples of buildGBeanInfo()


Examples of org.apache.geronimo.gbean.annotation.AnnotationGBeanInfoBuilder.buildGBeanInfo()

            @ParamReference(name = "WsdlGenerator", namingType = GBeanInfoBuilder.DEFAULT_J2EE_TYPE) Collection<WsdlGenerator> wsdlGenerators) {
        super(defaultEnviroment);
        this.wsdlGenerators = wsdlGenerators;
        this.webServiceFinder = new WARWebServiceFinder();
        AnnotationGBeanInfoBuilder annotationGBeanInfoBuilder = new AnnotationGBeanInfoBuilder(POJOWebServiceContainerFactoryGBean.class);
        defaultContainerFactoryGBeanInfo = annotationGBeanInfoBuilder.buildGBeanInfo();
    }

    public Axis2Builder() {
        super(null);
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.annotation.AnnotationGBeanInfoBuilder.buildGBeanInfo()

            @ParamReference(name = "WsdlGenerator", namingType = GBeanInfoBuilder.DEFAULT_J2EE_TYPE) Collection<WsdlGenerator> wsdlGenerators) {
        super(defaultEnviroment);
        this.wsdlGenerators = wsdlGenerators;
        this.webServiceFinder = new WARWebServiceFinder();
        AnnotationGBeanInfoBuilder annotationGBeanInfoBuilder = new AnnotationGBeanInfoBuilder(POJOWebServiceContainerFactoryGBean.class);
        defaultContainerFactoryGBeanInfo = annotationGBeanInfoBuilder.buildGBeanInfo();
    }

    public Axis2Builder() {
        super(null);
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.annotation.AnnotationGBeanInfoBuilder.buildGBeanInfo()

*/
public class AnnotationGBeanInfoBuilderTest extends TestCase {

    public void testSmoke() throws Exception {
        AnnotationGBeanInfoBuilder builder = new AnnotationGBeanInfoBuilder(SmokeGBean.class);
        GBeanInfo beanInfo = builder.buildGBeanInfo();
       
        assertEquals(SmokeGBean.class.getSimpleName(), beanInfo.getName());
        assertEquals("GBean", beanInfo.getJ2eeType());
       
        assertEquals(123, beanInfo.getPriority());
View Full Code Here

Examples of org.apache.geronimo.gbean.annotation.AnnotationGBeanInfoBuilder.buildGBeanInfo()

        assertEquals(Runnable.class.getName(), setterCollectionReference.getReferenceType());
    }

    public void testGBeanAnnotationWithDefaults() throws Exception {
        AnnotationGBeanInfoBuilder builder = new AnnotationGBeanInfoBuilder(AnnotatedWithDefaultsGBean.class);
        GBeanInfo beanInfo = builder.buildGBeanInfo();
        assertEquals(AnnotatedWithDefaultsGBean.class.getSimpleName(), beanInfo.getName());
        assertEquals("GBean", beanInfo.getJ2eeType());
    }
   
    public void testGBeanAnnotationWithExplicitName() throws Exception {
View Full Code Here

Examples of org.apache.geronimo.gbean.annotation.AnnotationGBeanInfoBuilder.buildGBeanInfo()

        assertEquals("GBean", beanInfo.getJ2eeType());
    }
   
    public void testGBeanAnnotationWithExplicitName() throws Exception {
        AnnotationGBeanInfoBuilder builder = new AnnotationGBeanInfoBuilder(AnnotatedWithExplicitNameGBean.class);
        GBeanInfo beanInfo = builder.buildGBeanInfo();
        assertEquals("name", beanInfo.getName());
        assertEquals("GBean", beanInfo.getJ2eeType());
    }
   
    public void testGBeanAnnotationWithExplicitJ2EEType() throws Exception {
View Full Code Here

Examples of org.apache.geronimo.gbean.annotation.AnnotationGBeanInfoBuilder.buildGBeanInfo()

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

Examples of org.apache.geronimo.gbean.annotation.AnnotationGBeanInfoBuilder.buildGBeanInfo()

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

    public void testMissingDefaultConstructorThrowsGBAE() throws Exception {
View Full Code Here

Examples of org.apache.geronimo.gbean.annotation.AnnotationGBeanInfoBuilder.buildGBeanInfo()

    }

    private void executeThrowGBAETest(Class gbeanClass) {
        try {
            AnnotationGBeanInfoBuilder builder = new AnnotationGBeanInfoBuilder(gbeanClass);
            builder.buildGBeanInfo();
            fail();
        } catch (GBeanAnnotationException e) {
        }
    }
   
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.