Package org.jboss.system.metadata

Examples of org.jboss.system.metadata.ServiceAttributeMetaData


            if(plainValue == null) return;
           
            String aname = mapAttributeName(md, name);
            if(aname != null)
            {
               ServiceAttributeMetaData attr = new ServiceAttributeMetaData();
               attr.setName(aname);
               md.addAttribute(attr);
               attributeValue = new ServiceTextValueMetaData("");
               attr.setValue(attributeValue);
            }
         }
         if (attributeValue != null)
         {
            // Unwrap the ServiceValueMetaData types
View Full Code Here


  
   @Override
   public List<ServiceAttributeMetaData> buildAttributes(ManagedConnectionFactoryDeploymentMetaData md)
   {
      List<ServiceAttributeMetaData> poolAttributes = new ArrayList<ServiceAttributeMetaData>();
      ServiceAttributeMetaData poolAttribute = null;

      poolAttribute = buildSimpleAttribute("PoolJndiName", md.getJndiName());
      poolAttributes.add(poolAttribute);
     
      poolAttribute = buildSimpleAttribute("MinSize", String.valueOf(md.getMinSize()));     
View Full Code Here

   @Override
   public List<ServiceAttributeMetaData> buildAttributes(ManagedConnectionFactoryDeploymentMetaData md)
   {
  
      List<ServiceAttributeMetaData> attributes = new ArrayList<ServiceAttributeMetaData>();
      ServiceAttributeMetaData attribute = null;
     
      attribute = buildDependencyAttribute("MetadataLibrary", "jboss.jdbc:service=metadata");
      attributes.add(attribute);
     
      String typeMapping = null;
View Full Code Here

  
   @Override
   public List<ServiceAttributeMetaData> buildAttributes(ManagedConnectionFactoryDeploymentMetaData md)
   {
      List<ServiceAttributeMetaData> attributes = new ArrayList<ServiceAttributeMetaData>();
      ServiceAttributeMetaData attribute = new ServiceAttributeMetaData();
     
      attribute = buildSimpleAttribute("JndiName", md.getJndiName());
      attributes.add(attribute);

      attribute = buildSimpleAttribute("UseJavaContext", String.valueOf(md.isUseJavaContext()));
View Full Code Here

   @Override
   public List<ServiceAttributeMetaData> buildAttributes(ManagedConnectionFactoryDeploymentMetaData md)
   {
      List<ServiceAttributeMetaData> attributes = new ArrayList<ServiceAttributeMetaData>();
      ServiceAttributeMetaData attribute = null;
     
      attribute = buildSimpleAttribute("JndiName", md.getJndiName());
      attributes.add(attribute);
     
      if (md.getSecurityMetaData() != null &&
          md.getSecurityMetaData().getDomain() != null &&
          !md.getSecurityMetaData().getDomain().equals(""))
      {
         attribute = buildSimpleAttribute("SecurityDomainJndiName", md.getSecurityMetaData().getDomain());
         attributes.add(attribute);
      }
     
      attribute = new ServiceAttributeMetaData();
      attribute.setName("SubjectFactory");
      ServiceInjectionValueMetaData injectionValue = new ServiceInjectionValueMetaData(subjectFactoryName);
      attribute.setValue(injectionValue);     
      attributes.add(attribute);
      

      attribute = buildDependencyAttribute("CachedConnectionManager", ccmJMXName);     
      attributes.add(attribute);
View Full Code Here

   }
  
  
   public ServiceAttributeMetaData buildSimpleAttribute(String name, String value)
   {
      ServiceAttributeMetaData att = new ServiceAttributeMetaData();
      att.setName(name);
      ServiceTextValueMetaData dep = new ServiceTextValueMetaData(value);
      att.setValue(dep);
      return att;
     
   }
View Full Code Here

      return new ArrayList<ServiceDependencyMetaData>();     
   }

   public ServiceAttributeMetaData buildDependencyAttribute(String name, String dependency)
   {
      ServiceAttributeMetaData att = new ServiceAttributeMetaData();
      ServiceDependencyValueMetaData dep = new ServiceDependencyValueMetaData();
      dep.setDependency(dependency);     
        
      if(name != null)
         att.setName(name);
     
      att.setValue(dep);
      return att;
  
   }
View Full Code Here

  
   @Override
   public List<ServiceAttributeMetaData> buildAttributes(ManagedConnectionFactoryDeploymentMetaData deployment)
   {
      List<ServiceAttributeMetaData> attributes = new ArrayList<ServiceAttributeMetaData>();
      ServiceAttributeMetaData attribute = buildDependencyAttribute("OldRarDeployment", RAR_JMX + deployment.getRarName() + "'");     
      attributes.add(attribute);           
      return attributes;
   }
View Full Code Here

         constructor.setSignature(new String[] { RARDeploymentMetaData.class.getName() });
         constructor.setParameters(new Object[] { rdmd });
         rarDeployment.setConstructor(constructor);
        
         List<ServiceAttributeMetaData> attributes = new ArrayList<ServiceAttributeMetaData>();
         ServiceAttributeMetaData attribute = null;
         if (workManagerName != null)
         {
            attribute = new ServiceAttributeMetaData();
            attribute.setName("WorkManager");
            attribute.setValue(new ServiceInjectionValueMetaData(workManagerName));
            attributes.add(attribute);
         }
         if (xaTerminatorName != null)
         {
            attribute = new ServiceAttributeMetaData();
            attribute.setName("XATerminator");
            attribute.setValue(new ServiceInjectionValueMetaData(xaTerminatorName, "XATerminator"));
            attributes.add(attribute);
         }
         if (attributes.isEmpty() == false)
            rarDeployment.setAttributes(attributes);
        
View Full Code Here

            if(plainValue == null) return;
           
            String aname = mapAttributeName(md, name);
            if(aname != null)
            {
               ServiceAttributeMetaData attr = new ServiceAttributeMetaData();
               attr.setName(aname);
               md.addAttribute(attr);
               attributeValue = new ServiceTextValueMetaData("");
               attr.setValue(attributeValue);
            }
         }
         if (attributeValue != null)
         {
            // Unwrap the ServiceValueMetaData types
View Full Code Here

TOP

Related Classes of org.jboss.system.metadata.ServiceAttributeMetaData

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.