Coverage Report - org.mule.transport.bpm.jbpm.JBpmConnector
 
Classes in this File Line Coverage Branch Coverage Complexity
JBpmConnector
0%
0/11
N/A
0
 
 1  
 /*
 2  
  * $Id: JBpmConnector.java 19710 2010-09-23 16:29:07Z tcarlson $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.transport.bpm.jbpm;
 12  
 
 13  
 import org.mule.api.MuleContext;
 14  
 import org.mule.module.bpm.BPMS;
 15  
 import org.mule.module.bpm.config.BpmNamespaceHandler;
 16  
 import org.mule.transport.bpm.ProcessConnector;
 17  
 import org.mule.util.ClassUtils;
 18  
 
 19  
 import java.util.Properties;
 20  
 
 21  
 /**
 22  
  * @deprecated It is recommended to configure BPM as a component rather than a transport for 3.x
 23  
  */
 24  
 public class JBpmConnector extends ProcessConnector 
 25  
 {    
 26  
     private String configurationResource;
 27  
     
 28  
     private Object processEngine;
 29  
     
 30  
     private Properties processDefinitions;
 31  
 
 32  
     public JBpmConnector(MuleContext context)
 33  
     {
 34  0
         super(context);
 35  0
     }
 36  
     
 37  
     @Override
 38  
     protected BPMS createBpms() throws Exception
 39  
     {
 40  0
         return (BPMS) ClassUtils.instanciateClass(BpmNamespaceHandler.JBPM_WRAPPER_CLASS, configurationResource, processDefinitions);
 41  
     }
 42  
 
 43  
     public void setConfigurationResource(String configurationResource)
 44  
     {
 45  0
         this.configurationResource = configurationResource;
 46  0
     }
 47  
 
 48  
     public String getConfigurationResource()
 49  
     {
 50  0
         return configurationResource;
 51  
     }
 52  
     
 53  
     public Object getProcessEngine()
 54  
     {
 55  0
         return processEngine;
 56  
     }
 57  
 
 58  
     public void setProcessEngine(Object processEngine)
 59  
     {
 60  0
         this.processEngine = processEngine;
 61  0
     }
 62  
     
 63  
     public void setProcessDefinitions(Properties processDefinitions)
 64  
     {
 65  0
         this.processDefinitions = processDefinitions;
 66  0
     }
 67  
 }