Examples of ProvidedObjectDescriptor


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

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

      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

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

  }

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

Examples of org.jbpm.wire.descriptor.ProvidedObjectDescriptor

*/
public class TransactionInterceptorBinding implements Binding {

  public Object parse(Element element, Parse parse, Parser parser) {
    TransactionInterceptor transactionInterceptor = new TransactionInterceptor();
    return new ProvidedObjectDescriptor(transactionInterceptor);
  }
View Full Code Here

Examples of org.jbpm.wire.descriptor.ProvidedObjectDescriptor

*/
public class AuthorizationInterceptorBinding implements Binding {

  public Object parse(Element element, Parse parse, Parser parser) {
    AuthorizationInterceptor authorizationInterceptor = new AuthorizationInterceptor();
    return new ProvidedObjectDescriptor(authorizationInterceptor);
  }
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.