Package org.apache.geronimo.gbean.annotation

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


        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


    }

    private Map getAdminObjectInfoMap(AbstractName validatorName, List<AdminObject> adminObjects, Bundle bundle) throws DeploymentException {
        Map<String, GBeanData> adminObjectInfos = new HashMap<String, GBeanData>();
        for (AdminObject adminObject : adminObjects) {
            GBeanInfoBuilder adminObjectInfoBuilder = new GBeanInfoBuilder(AdminObjectWrapperGBean.class, new AnnotationGBeanInfoBuilder(AdminObjectWrapperGBean.class).buildGBeanInfo());
            String adminObjectClassName = adminObject.getAdminObjectClass();
            GBeanData adminObjectGBeanData = setUpDynamicGBeanWithProperties(adminObjectClassName, adminObjectInfoBuilder, adminObject.getConfigProperty(), bundle, Collections.<String>emptySet());

            // set the standard properties
            String adminObjectInterface = adminObject.getAdminObjectInterface();
View Full Code Here

    public Axis2Builder(@ParamAttribute(name = "defaultEnvironment") Environment defaultEnviroment,
            @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();
    }
View Full Code Here

        ObjectInputStream is = new ObjectInputStream(memIn);
        is.readObject();
    }

    public void testCurrentSerialization2() throws Exception {
        GBeanData beanData = new GBeanData(new AnnotationGBeanInfoBuilder(AnnotationGBean.class).buildGBeanInfo());
        beanData.setServiceInterfaces(new String[] {TestSupport.class.getName()});
        beanData.getServiceProperties().put("foo", "bar");

        ByteArrayOutputStream memOut = new ByteArrayOutputStream();
        ObjectOutputStream os = new ObjectOutputStream(memOut);
View Full Code Here

        beanInfo = (GBeanInfo) is.readObject();
        assertEquals(GBeanInfo.PRIORITY_CLASSLOADER, beanInfo.getPriority());
    }
   
    public void testCurrentSerializationAnnotation() throws Exception {
        GBeanInfo beanInfo = new AnnotationGBeanInfoBuilder(AnnotationGBean.class).buildGBeanInfo();

        ByteArrayOutputStream memOut = new ByteArrayOutputStream();
        ObjectOutputStream os = new ObjectOutputStream(memOut);
        os.writeObject(beanInfo);
View Full Code Here

    public Axis2Builder(@ParamAttribute(name = "defaultEnvironment") Environment defaultEnviroment,
            @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();
    }
View Full Code Here

* @version $Rev:$ $Date:$
*/
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

        assertEquals(Collection.class.getName(), setterCollectionReference.getProxyType());
        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());
    }
View Full Code Here

        assertEquals(AnnotatedWithDefaultsGBean.class.getSimpleName(), beanInfo.getName());
        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());
    }
View Full Code Here

        assertEquals("name", beanInfo.getName());
        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());
    }
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.