Examples of ObjectDescriptor


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

  public JtaTransactionInterceptorBinding() {
    super("jta-transaction-interceptor");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    return new ObjectDescriptor(JtaTransactionInterceptor.class);
  }
View Full Code Here

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

  public ExecutionServiceBinding() {
    super("execution-service");
  }

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

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

  public TaskServiceBinding() {
    super("task-service");
  }

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

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

  public MessageSessionBinding() {
    super("message-session");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    ObjectDescriptor objectDescriptor = new ObjectDescriptor();
   
    String target = XmlUtil.attribute(element, "target");
    if ("jms".equals(target)) {
      objectDescriptor.setClassName(JmsMessageSession.class.getName());
      objectDescriptor.addInjection("dbSession", new ContextTypeRefDescriptor(DbSession.class));
     
      if (element.hasAttribute("session-jndi")) {
        String jmsSessionJndiName = element.getAttribute("session-jndi");
        JndiDescriptor jndiDescriptor = new JndiDescriptor(jmsSessionJndiName);
        objectDescriptor.addInjection("jmsSession", jndiDescriptor);
      } else {
        parse.addProblem("attribute <"+XmlUtil.getTagLocalName(element)+" session-jndi=\"...\" is required when target=\"jms\"", element);
      }
     
      if (element.hasAttribute("destination-jndi")) {
        String jmsDestinationJndiName = element.getAttribute("destination-jndi");
        JndiDescriptor jndiDescriptor = new JndiDescriptor(jmsDestinationJndiName);
        objectDescriptor.addInjection("jmsDestination", jndiDescriptor);
      } else {
        parse.addProblem("attribute <"+XmlUtil.getTagLocalName(element)+" destination-jndi=\"...\" is required when target=\"jms\"", element);
      }

    } else {
      objectDescriptor.setClassName(JobExecutorMessageSession.class.getName());
      objectDescriptor.addInjection("transaction", new TransactionRefDescriptor());
      objectDescriptor.addInjection("dbSession", new ContextTypeRefDescriptor(DbSession.class));
    }

    return objectDescriptor;
  }
View Full Code Here

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

  public IdGeneratorBinding() {
    super("id-generator");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    return new ObjectDescriptor(DefaultIdGenerator.class);
  }
View Full Code Here

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

  public DeployerManagerBinding() {
    super(DEPLOYER_MANAGER_TAG);
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    ObjectDescriptor objectDescriptor = new ObjectDescriptor(DeployerManager.class);
   
    ListBinding listBinding = new ListBinding();
    ListDescriptor listDescriptor = (ListDescriptor) listBinding.parse(element, parse, parser);
    objectDescriptor.addInjection("deployers", listDescriptor);

    return objectDescriptor;
  }
View Full Code Here

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

  public AuthenticationBinding() {
    super("authentication");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    ObjectDescriptor objectDescriptor = new ObjectDescriptor();
   
    objectDescriptor.setClassName(Authentication.class.getName());
   
    return objectDescriptor;
  }
View Full Code Here

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

  public HistorySessionBinding() {
    super("history-session");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    return new ObjectDescriptor(HistorySessionImpl.class);
  }
View Full Code Here

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

    activityBuilder.activity.setBehaviour(activityBehaviour);
    return activityBuilder;
  }

  public ActivityBuilder startActivity(Class<? extends ActivityBehaviour> activityClass) {
    return startActivity(null, new ObjectDescriptor(activityClass));
  }
View Full Code Here

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

  public ActivityBuilder startActivity(Class<? extends ActivityBehaviour> activityClass) {
    return startActivity(null, new ObjectDescriptor(activityClass));
  }

  public ActivityBuilder startActivity(String activityName, Class<? extends ActivityBehaviour> activityClass) {
    return startActivity(activityName, new ObjectDescriptor(activityClass));
  }
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.