Package org.jboss.beans.metadata.spi.builder

Examples of org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder.createInject()


         // get the metadata for the role-mapping policy bean.
         String mappingPolicyName = this.policyName + "$RoleMappingPolicy";
         result.addAll(this.roleMappingMetaData.getBeans(mappingPolicyName, MappingPolicyBean.class.getName()));

         // inject the role-mapping policy into the application policy.
         ValueMetaData injectMappingPolicy = policyBuilder.createInject(mappingPolicyName);
         policyBuilder.addPropertyMetaData("roleMappingPolicy", injectMappingPolicy);
      }

      // generic mapping metadata.
      if (this.mappingMetaData != null)
View Full Code Here


         // get the metadata for the mapping policy bean.
         String mappingPolicyName = this.policyName + "$MappingPolicy";
         result.addAll(this.mappingMetaData.getBeans(mappingPolicyName, MappingPolicyBean.class.getName()));

         // inject the mapping policy into the application policy.
         ValueMetaData injectMappingPolicy = policyBuilder.createInject(mappingPolicyName);
         policyBuilder.addPropertyMetaData("mappingPolicy", injectMappingPolicy);
      }

      // audit metadata.
      if (this.auditMetaData != null)
View Full Code Here

         // get the metadata for the audit policy bean.
         String auditPolicyName = this.policyName + "$AuditPolicy";
         result.addAll(this.auditMetaData.getBeans(auditPolicyName, AuditPolicyBean.class.getName()));

         // inject the audit policy into the application policy.
         ValueMetaData injectAuditPolicy = policyBuilder.createInject(auditPolicyName);
         policyBuilder.addPropertyMetaData("auditPolicy", injectAuditPolicy);
      }

      // identity-trust metadata.
      if (this.trustMetaData != null)
View Full Code Here

         // get the metadata for the identity-trust policy bean.
         String trustPolicyName = this.policyName + "$IdentityTrustPolicy";
         result.addAll(this.trustMetaData.getBeans(trustPolicyName, IdentityTrustPolicyBean.class.getName()));

         // inject the identity-trust policy into the application policy.
         ValueMetaData injectIdentityTrustPolicy = policyBuilder.createInject(trustPolicyName);
         policyBuilder.addPropertyMetaData("identityTrustPolicy", injectIdentityTrustPolicy);
      }

      // inject the security management bean.
      logger.trace("Injecting security management " + this.securityManagement + " into application-policy metadata");
View Full Code Here

         policyBuilder.addPropertyMetaData("identityTrustPolicy", injectIdentityTrustPolicy);
      }

      // inject the security management bean.
      logger.trace("Injecting security management " + this.securityManagement + " into application-policy metadata");
      ValueMetaData injectManagement = policyBuilder.createInject(this.securityManagement);
      policyBuilder.addPropertyMetaData("securityManagement", injectManagement);

      return result;
   }
}
View Full Code Here

         for (BaseModuleMetaData moduleMetaData : this.loginModules)
         {
            String loginModuleName = stackName + "$Module" + moduleIndex++;
            // create the module metadata.
            result.add(moduleMetaData.getBean(loginModuleName));
            ValueMetaData injectLoginModule = builder.createInject(loginModuleName);
            modulesMetaData.add(injectLoginModule);
         }
         // inject all modules into the stack metadata.
         builder.addPropertyMetaData("loginModules", modulesMetaData);
      }
View Full Code Here

         for (BaseModuleMetaData moduleMetaData : this.modules)
         {
            String moduleName = policyName + "$Module" + moduleIndex++;
            result.add(moduleMetaData.getBean(moduleName));
            // inject the module into the collection of modules metadata.
            ValueMetaData injectLoginModule = builder.createInject(moduleName);
            modulesMetaData.add(injectLoginModule);
         }
         // inject the collection of modules into the policy bean.
         builder.addPropertyMetaData("modules", modulesMetaData);
      }
View Full Code Here

         builder.addConstructorParameter(Class.class.getName(), clientClass);
         builder.addConstructorParameter(String.class.getName(), clientName);
         String classLoaderName = factory.getContextName();
         if(classLoaderName == null)
            classLoaderName = factory.getName() + ":" + factory.getVersion();
         ValueMetaData classLoader = builder.createInject(classLoaderName);
         builder.setClassLoader(classLoader);
         BeanMetaData clientContainerMD = builder.getBeanMetaData();
  
         AbstractKernelDeployment deployment = new AbstractKernelDeployment();
         deployment.setName(factory.getName() + ":" + factory.getVersion());
View Full Code Here

      unit.addAttachment(envName + "_" + BeanMetaData.class.getSimpleName(), envWrapper.getBeanMetaData());

      String bootstrapName = DeployersUtils.getBootstrapBeanName(unit);
      BeanMetaDataBuilder bootstrap = BeanMetaDataBuilder.createBuilder(bootstrapName, "org.jboss.webbeans.bootstrap.api.helpers.BootstrapBean");
      bootstrap.addConstructorParameter(Bootstrap.class.getName(), createBootstrap(unit));
      bootstrap.addPropertyMetaData("webBeanDiscovery", bootstrap.createInject(envName));
      ValueMetaData ejbServicesValue = createEjbConnector("JBossEjbServices", "org.jboss.webbeans.integration.ejb.JBossEjbServices", unit);
      bootstrap.addPropertyMetaData("ejbServices", ejbServicesValue);
      bootstrap.addPropertyMetaData("jpaServices", createEjbConnector("JBossJpaServices", "org.jboss.webbeans.integration.persistence.JBossJpaServices", unit));
      bootstrap.addPropertyMetaData("resourceServices", bootstrap.createInject("JBossResourceServices"));
      bootstrap.addPropertyMetaData("webServices", bootstrap.createInject("JBossWebServices"));
View Full Code Here

      bootstrap.addConstructorParameter(Bootstrap.class.getName(), createBootstrap(unit));
      bootstrap.addPropertyMetaData("webBeanDiscovery", bootstrap.createInject(envName));
      ValueMetaData ejbServicesValue = createEjbConnector("JBossEjbServices", "org.jboss.webbeans.integration.ejb.JBossEjbServices", unit);
      bootstrap.addPropertyMetaData("ejbServices", ejbServicesValue);
      bootstrap.addPropertyMetaData("jpaServices", createEjbConnector("JBossJpaServices", "org.jboss.webbeans.integration.persistence.JBossJpaServices", unit));
      bootstrap.addPropertyMetaData("resourceServices", bootstrap.createInject("JBossResourceServices"));
      bootstrap.addPropertyMetaData("webServices", bootstrap.createInject("JBossWebServices"));
      bootstrap.addPropertyMetaData("jmsServices", bootstrap.createInject("JBossJmsServices"));
      bootstrap.addPropertyMetaData("transactionServices", bootstrap.createInject("JBossTransactionServices"));
      bootstrap.addPropertyMetaData("applicationContext", createBeanStore());
      bootstrap.addPropertyMetaData("environment", Environments.EE);
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.