Package org.jbpm.wire.descriptor

Examples of org.jbpm.wire.descriptor.HibernateSessionFactoryDescriptor


* @author Tom Baeyens
*/
public class HibernateSessionFactoryBinding extends HibernateConfigurationBinding {

  public Object parse(Element element, Parse parse, Parser parser) {
    HibernateSessionFactoryDescriptor descriptor = new HibernateSessionFactoryDescriptor();
   
    if (element.hasAttribute("configuration")) {
      descriptor.setConfigurationName(element.getAttribute("configuration"));

    // if hibernate session factory binding has sub elements, we assume that
    // it is an inline configuration declaration
    } else if (XmlUtil.elements(element)!=null) {
      Descriptor configurationDescriptor = (Descriptor) super.parse(element, parse, parser);
      descriptor.setConfigurationDescriptor(configurationDescriptor);
    }

    return descriptor;
  }
View Full Code Here

TOP

Related Classes of org.jbpm.wire.descriptor.HibernateSessionFactoryDescriptor

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.