Package org.jbpm.pvm.internal.wire.descriptor

Examples of org.jbpm.pvm.internal.wire.descriptor.ProvidedObjectDescriptor


  public Object parse(Element element, Parse parse, Parser parser) {
    // MailTemplateRegistry is added to the WireDescriptor with a ProvidedObjectDescriptor
    // The MailTemplateRegistry descriptor is lazy initialized by this binding
    // mail-template will add a MailTemplate to the MailTemplateRegistry
    ProvidedObjectDescriptor templateRegistryDescriptor;
    MailTemplateRegistry templateRegistry;

    WireDefinition wireDefinition = parse.contextStackFind(WireDefinition.class);
    String templateRegistryDescriptorName = (wireDefinition != null ? wireDefinition.getDescriptorName(MailTemplateRegistry.class) : null);
   
    if (templateRegistryDescriptorName != null) {
      templateRegistryDescriptor = (ProvidedObjectDescriptor) wireDefinition.getDescriptor(templateRegistryDescriptorName);
      templateRegistry = (MailTemplateRegistry) templateRegistryDescriptor.getProvidedObject();
    } else {
      templateRegistry = new MailTemplateRegistry();
      templateRegistryDescriptor = new ProvidedObjectDescriptor(templateRegistry, true);
    }

    // create the mail template and add it to the registry
    MailTemplate mailTemplate = parseMailTemplate(element, parse);
    String templateName = XmlUtil.attribute(element, "name", true, parse);
View Full Code Here


      this.eagerInitNames = new ArrayList<String>(other.eagerInitNames);
    }
    this.useTypes = other.useTypes;
   
    for (UserProvidedEnvironmentObject userProvidedEnvironmentObject: txWireObjects) {
      ProvidedObjectDescriptor descriptor = new ProvidedObjectDescriptor(
        userProvidedEnvironmentObject.getObject(),
        userProvidedEnvironmentObject.isTypeExposed(),
        userProvidedEnvironmentObject.getName()
      );
      addDescriptor(descriptor);
View Full Code Here

  }

  public ConfigurationImpl setHibernateSessionFactory(Object hibernateSessionFactory) {
    processEngineWireContext
        .getWireDefinition()
        .addDescriptor(new ProvidedObjectDescriptor(hibernateSessionFactory, true));
    return this;
  }
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.internal.wire.descriptor.ProvidedObjectDescriptor

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.