Examples of ReferenceDescriptor


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

    super("identity-service");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    ObjectDescriptor descriptor = new ObjectDescriptor(IdentityServiceImpl.class);
    descriptor.addInjection("commandService", new ReferenceDescriptor(CommandService.NAME_TX_REQUIRED_COMMAND_SERVICE));
    return descriptor;
  }
View Full Code Here

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

    super("execution-service");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    ObjectDescriptor descriptor = new ObjectDescriptor(ExecutionServiceImpl.class);
    descriptor.addInjection("commandService", new ReferenceDescriptor(CommandService.NAME_TX_REQUIRED_COMMAND_SERVICE));
    return descriptor;
  }
View Full Code Here

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

    super("task-service");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    ObjectDescriptor descriptor = new ObjectDescriptor(TaskServiceImpl.class);
    descriptor.addInjection("commandService", new ReferenceDescriptor(CommandService.NAME_TX_REQUIRED_COMMAND_SERVICE));
    return descriptor;
  }
View Full Code Here

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

    super("repository-service");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    ObjectDescriptor descriptor = new ObjectDescriptor(RepositoryServiceImpl.class);
    descriptor.addInjection("commandService", new ReferenceDescriptor(CommandService.NAME_TX_REQUIRED_COMMAND_SERVICE));
    return descriptor;
  }
View Full Code Here

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

    super("management-service");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    ObjectDescriptor descriptor = new ObjectDescriptor(ManagementServiceImpl.class);
    descriptor.addInjection("commandService", new ReferenceDescriptor(CommandService.NAME_TX_REQUIRED_COMMAND_SERVICE));
    return descriptor;
  }
View Full Code Here

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

  public RefBinding() {
    super("ref");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    ReferenceDescriptor descriptor = new ReferenceDescriptor();
    if (element.hasAttribute("object")) {
      descriptor.setValue(element.getAttribute("object"));
    } else if (element.hasAttribute("type")) {
      descriptor.setType(element.getAttribute("type"));
     
    } else {
      parse.addProblem("ref must have object attribute: "+XmlUtil.toString(element), element);
    }
    return descriptor;
View Full Code Here

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

    super("history-service");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    ObjectDescriptor descriptor = new ObjectDescriptor(HistoryServiceImpl.class);
    descriptor.addInjection("commandService", new ReferenceDescriptor(CommandService.NAME_TX_REQUIRED_COMMAND_SERVICE));
    return descriptor;
  }
View Full Code Here

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

    // inject the command executor

    if (element.hasAttribute("command-service")) {
      descriptor.addInjection("commandService",
          new ReferenceDescriptor(element.getAttribute("command-service"))
      );
    } else {
      descriptor.addInjection("commandService",
          new ReferenceDescriptor(CommandService.NAME_TX_REQUIRED_COMMAND_SERVICE)
      );
    }

    if (element.hasAttribute("name")) {
      descriptor.addInjection("name", new StringDescriptor(element.getAttribute("name")));
View Full Code Here

Examples of org.jbpm.wire.descriptor.ReferenceDescriptor

* @see WireParser
*/
public class RefBinding implements Binding {

  public Object parse(Element element, Parse parse, Parser parser) {
    ReferenceDescriptor descriptor = new ReferenceDescriptor();
    if (element.hasAttribute("object")) {
      descriptor.setValue(element.getAttribute("object"));
    } else {
      parse.addProblem("ref must have object attribute: "+XmlUtil.toString(element));
    }
    return descriptor;
  }
View Full Code Here

Examples of org.jbpm.wire.descriptor.ReferenceDescriptor

*/
public class PersistenceSessionBinding implements Binding {

  public Object parse(Element element, Parse parse, Parser parser) {
    String factoryName = XmlUtil.attribute(element, "factory");
    ReferenceDescriptor factoryDescriptor = new ReferenceDescriptor();
    factoryDescriptor.setValue(factoryName);

    ObjectDescriptor persistenceSessionDescriptor = new ObjectDescriptor();
    persistenceSessionDescriptor.setFactoryDescriptor(factoryDescriptor);
    persistenceSessionDescriptor.setMethodName("openPersistenceSession");

    persistenceSessionDescriptor.setAutoWireEnabled(true);

    String connectionName = XmlUtil.attribute(element, "connection");
    if (connectionName!=null) {
      List<ArgDescriptor> argDescriptors = new ArrayList<ArgDescriptor>();
      persistenceSessionDescriptor.setArgDescriptors(argDescriptors);

      ArgDescriptor argDescriptor = new ArgDescriptor();
      argDescriptor.setTypeName(Connection.class.getName());
      ReferenceDescriptor connectionDescriptor = new ReferenceDescriptor();
      connectionDescriptor.setValue(connectionName);
      argDescriptor.setDescriptor(connectionDescriptor);
    }

    SubscribeOperation subscribeOperation = new SubscribeOperation();
    subscribeOperation.setWireEvents(false);
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.