public void write(Element actionElement) { if (actionDelegation != null) { actionDelegation.write(actionElement); } }
public String toString() { return "MailAction(" + actionDelegation.getConfiguration() + ')'; } }
public Object getInstance() { if (instance == null) { instance = instantiate(); } return instance; }
private static Map createInstantiatorCache() { Map instantiators = new HashMap(); instantiators.put(null, new FieldInstantiator()); instantiators.put("field", new FieldInstantiator()); instantiators.put("bean", new BeanInstantiator()); instantiators.put("constructor", new ConstructorInstantiator()); instantiators.put("configuration-property", new ConfigurationPropertyInstantiator()); instantiators.put("xml", new XmlInstantiator()); return instantiators; }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Delegation)) return false; Delegation other = (Delegation) o; if (id != 0 && id == other.getId()) return true; return className.equals(other.getClassName()) && (configuration != null ? configuration.equals(other.getConfiguration()) : other.getConfiguration() == null); }
public void read(Element decisionElement, JpdlXmlReader jpdlReader) { String expression = decisionElement.attributeValue("expression"); Element decisionHandlerElement = decisionElement.element("handler"); if (expression != null) { decisionExpression = expression; } else if (decisionHandlerElement != null) { decisionDelegation = new Delegation(); decisionDelegation.read(decisionHandlerElement, jpdlReader); } }
protected URLConnection openConnection(URL url) throws IOException { return new ProcessUrlConnection(url); } };
protected URLConnection openConnection(URL u) throws IOException { return new BytesUrlConnection(bytes, u); } }
public ClassLoader getProcessClassLoader(ProcessDefinition processDefinition) { // default behavior like before https://jira.jboss.org/jira/browse/JBPM-1148 return new ProcessClassLoader(ClassLoaderUtil.getClassLoader(), processDefinition); } }
public static ClassLoader getProcessClassLoader(ProcessDefinition processDefinition) { ProcessClassLoaderFactory factory = (ProcessClassLoaderFactory) Configs.getObject("process.class.loader.factory"); return factory.getProcessClassLoader(processDefinition); }
private static Map createInstantiatorCache() { Map instantiators = new HashMap(); instantiators.put(null, new FieldInstantiator()); instantiators.put("field", new FieldInstantiator()); instantiators.put("bean", new BeanInstantiator()); instantiators.put("constructor", new ConstructorInstantiator()); instantiators.put("configuration-property", new ConfigurationPropertyInstantiator()); instantiators.put("xml", new XmlInstantiator()); return instantiators; }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Delegation)) return false; Delegation other = (Delegation) o; if (id != 0 && id == other.getId()) return true; return className.equals(other.getClassName()) && (configuration != null ? configuration.equals(other.getConfiguration()) : other.getConfiguration() == null); }
public void read(Element decisionElement, JpdlXmlReader jpdlReader) { String expression = decisionElement.attributeValue("expression"); Element decisionHandlerElement = decisionElement.element("handler"); if (expression != null) { decisionExpression = expression; } else if (decisionHandlerElement != null) { decisionDelegation = new Delegation(); decisionDelegation.read(decisionHandlerElement, jpdlReader); } }
public void write(Element actionElement) { if (actionDelegation != null) { actionDelegation.write(actionElement); } }
public String toString() { return "MailAction(" + actionDelegation.getConfiguration() + ')'; } }
public Object getInstance() { if (instance == null) { instance = instantiate(); } return instance; }
protected URLConnection openConnection(URL url) throws IOException { return new ProcessUrlConnection(url); } };
protected URLConnection openConnection(URL u) throws IOException { return new BytesUrlConnection(bytes, u); } }
public ClassLoader getProcessClassLoader(ProcessDefinition processDefinition) { // default behavior like before https://jira.jboss.org/jira/browse/JBPM-1148 return new ProcessClassLoader(ClassLoaderUtil.getClassLoader(), processDefinition); } }
public static ClassLoader getProcessClassLoader(ProcessDefinition processDefinition) { ProcessClassLoaderFactory factory = (ProcessClassLoaderFactory) Configs.getObject("process.class.loader.factory"); return factory.getProcessClassLoader(processDefinition); }