Package org.jboss.beans.metadata.plugins

Examples of org.jboss.beans.metadata.plugins.AbstractBeanMetaData.addProperty()


         //instantiate datasource using MC
         String entryName = "portal:identity=Datasource,type=" + ds.getName();
         AbstractBeanMetaData dsBMD = new AbstractBeanMetaData(entryName,
            ds.getClassName());
         AbstractPropertyMetaData propertyBMD = new AbstractPropertyMetaData("identityContext", identityContext);
         dsBMD.addProperty(propertyBMD);
         propertyBMD = new AbstractPropertyMetaData("jndiBinder", getServiceJNDIBinder());
         dsBMD.addProperty(propertyBMD);

         //initiate parameters from <config>
         for (Iterator iterator1 = datasourceService.getOptions().keySet().iterator(); iterator1.hasNext();)
View Full Code Here


         AbstractBeanMetaData dsBMD = new AbstractBeanMetaData(entryName,
            ds.getClassName());
         AbstractPropertyMetaData propertyBMD = new AbstractPropertyMetaData("identityContext", identityContext);
         dsBMD.addProperty(propertyBMD);
         propertyBMD = new AbstractPropertyMetaData("jndiBinder", getServiceJNDIBinder());
         dsBMD.addProperty(propertyBMD);

         //initiate parameters from <config>
         for (Iterator iterator1 = datasourceService.getOptions().keySet().iterator(); iterator1.hasNext();)
         {
            String propertyKey = (String)iterator1.next();
View Full Code Here

         {
            String propertyKey = (String)iterator1.next();
            String propertyValue = (String)datasourceService.getOptions().get(propertyKey);
            //if (log.isDebugEnabled()) log.debug("adding parameter: " + propertyKey + " ; " + propertyValue);
            propertyBMD = new AbstractPropertyMetaData(propertyKey, propertyValue);
            dsBMD.addProperty(propertyBMD);
         }

         // Installation
         //beans.add(dsBMD);
         KernelControllerContext controllerContext = kernel.getController().install(dsBMD);
View Full Code Here

        
         String entryName = "portal:identity=Module,type=" + module.getType();
         AbstractBeanMetaData moduleBMD = new AbstractBeanMetaData(entryName,
            module.getClassName());
         AbstractPropertyMetaData propertyBMD = new AbstractPropertyMetaData("identityContext", identityContext);
         moduleBMD.addProperty(propertyBMD);
         propertyBMD = new AbstractPropertyMetaData("jndiBinder", getServiceJNDIBinder());
         moduleBMD.addProperty(propertyBMD);

         //initiate parameters from <config>
         for (Iterator iterator1 = moduleService.getModuleOptions().keySet().iterator(); iterator1.hasNext();)
View Full Code Here

         AbstractBeanMetaData moduleBMD = new AbstractBeanMetaData(entryName,
            module.getClassName());
         AbstractPropertyMetaData propertyBMD = new AbstractPropertyMetaData("identityContext", identityContext);
         moduleBMD.addProperty(propertyBMD);
         propertyBMD = new AbstractPropertyMetaData("jndiBinder", getServiceJNDIBinder());
         moduleBMD.addProperty(propertyBMD);

         //initiate parameters from <config>
         for (Iterator iterator1 = moduleService.getModuleOptions().keySet().iterator(); iterator1.hasNext();)
         {
            String propertyKey = (String)iterator1.next();
View Full Code Here

         {
            String propertyKey = (String)iterator1.next();
            String propertyValue = (String)moduleService.getModuleOptions().get(propertyKey);
            //if (log.isDebugEnabled()) log.debug("adding parameter: " + propertyKey + " ; " + propertyValue);
            propertyBMD = new AbstractPropertyMetaData(propertyKey, propertyValue);
            moduleBMD.addProperty(propertyBMD);
         }

         //make the type from name
         propertyBMD = new AbstractPropertyMetaData("moduleType", module.getType());
         moduleBMD.addProperty(propertyBMD);
View Full Code Here

            moduleBMD.addProperty(propertyBMD);
         }

         //make the type from name
         propertyBMD = new AbstractPropertyMetaData("moduleType", module.getType());
         moduleBMD.addProperty(propertyBMD);


         // Installation
         //beans.add(moduleBMD);
         KernelControllerContext controllerContext = kernel.getController().install(moduleBMD);
View Full Code Here

      BeanInstanceClassFactory instanceClassFactory = new BeanInstanceClassFactory();
      factory.setInstanceClassFactory(AbstractBeanMetaData.class, instanceClassFactory);
      try
      {
         AbstractBeanMetaData plainMCBean = new AbstractBeanMetaData("plain", PlainMCBean.class.getName());
         plainMCBean.addProperty(new AbstractPropertyMetaData("id", "PlainMCBean"));
         ManagedObject mo = factory.initManagedObject(plainMCBean, "PlainMCBean", "MC");
         assertNotNull(mo);
         assertEquals("plain", mo.getComponentName());

         AbstractBeanMetaData runtimeMCBean = new AbstractBeanMetaData("runtime", MCBeanWithRuntimeName.class.getName());
View Full Code Here

         ManagedObject mo = factory.initManagedObject(plainMCBean, "PlainMCBean", "MC");
         assertNotNull(mo);
         assertEquals("plain", mo.getComponentName());

         AbstractBeanMetaData runtimeMCBean = new AbstractBeanMetaData("runtime", MCBeanWithRuntimeName.class.getName());
         runtimeMCBean.addProperty(new AbstractPropertyMetaData("id", "RuntimeMCBean"));
         runtimeMCBean.addProperty(new AbstractPropertyMetaData("componentName", "FromObjectRuntime"));
         ManagedObject mo2 = factory.initManagedObject(runtimeMCBean, "RuntimeMCBean", "MC");
         assertNotNull(mo2);
         assertEquals("FromObjectRuntime", mo2.getComponentName());
      }
View Full Code Here

         assertNotNull(mo);
         assertEquals("plain", mo.getComponentName());

         AbstractBeanMetaData runtimeMCBean = new AbstractBeanMetaData("runtime", MCBeanWithRuntimeName.class.getName());
         runtimeMCBean.addProperty(new AbstractPropertyMetaData("id", "RuntimeMCBean"));
         runtimeMCBean.addProperty(new AbstractPropertyMetaData("componentName", "FromObjectRuntime"));
         ManagedObject mo2 = factory.initManagedObject(runtimeMCBean, "RuntimeMCBean", "MC");
         assertNotNull(mo2);
         assertEquals("FromObjectRuntime", mo2.getComponentName());
      }
      finally
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.