Examples of JormFactoryAttributes


Examples of org.objectweb.speedo.mapper.api.JormFactoryAttributes

            + " | " + MAPPING_STRUCTURE_FC
            + "]");
      }
    }
    component = getSubComponent(speedo, JORM_FACTORY_PATH);
    JormFactoryAttributes jfa = (JormFactoryAttributes)
                    Fractal.getAttributeController(component);
    jfa.setMappingStructureRule(mappingStructureRule);
    logger.log(BasicLevel.INFO, LocaleHelper.getSpeedoRB().getString("datast")
        + getMappingStructureString(mappingStructureRule));
    jfa.setPersonality(getPersonality());

    Properties jormFactoryProperties = new Properties();
        for (Iterator it = props.entrySet().iterator(); it.hasNext();) {
            Map.Entry me = (Map.Entry) it.next();
            String key = (String) me.getKey();
            String value = (String) me.getValue();
      boolean knownProperty = true;
          if (key.indexOf('(') != -1) {
              jormFactoryProperties.put(key, value);
            } else {
        knownProperty = false;
            }
      if (knownProperty) {
        logger.log(BasicLevel.INFO, key + ": " + value);
        it.remove();
      }
        }
        jfa.setSpeedoProperties(jormFactoryProperties);
   
    return useConnectionFactory;
  }
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.