1 17 package org.apache.servicemix.jbi.management.task; 18 19 import org.apache.servicemix.jbi.framework.AdminCommandsServiceMBean; 20 import org.apache.tools.ant.BuildException; 21 import org.apache.tools.ant.Project; 22 23 28 public class ListBindingComponentsTask extends JbiTask { 29 30 private String sharedLibraryName; 31 private String serviceAssemblyName; 32 private String bindingComponentName; 33 private String state; 34 private String xmlOutput; 35 36 39 public String isXmlOutput() { 40 return xmlOutput; 41 } 42 43 46 public void setXmlOutput(String xmlOutput) { 47 this.xmlOutput = xmlOutput; 48 } 49 50 54 public String getSharedLibraryName() { 55 return sharedLibraryName; 56 } 57 58 62 public void setSharedLibraryName(String sharedLibraryName) { 63 this.sharedLibraryName = sharedLibraryName; 64 } 65 66 70 public String getServiceAssemblyName() { 71 return serviceAssemblyName; 72 } 73 74 78 public void setServiceAssemblyName(String serviceAssemblyName) { 79 this.serviceAssemblyName = serviceAssemblyName; 80 } 81 82 86 public String getBindingComponentName() { 87 return bindingComponentName; 88 } 89 90 94 public void setBindingComponentName(String bindingComponentName) { 95 this.bindingComponentName = bindingComponentName; 96 } 97 98 102 public String getState() { 103 return state; 104 } 105 106 110 public void setState(String state) { 111 this.state = state; 112 } 113 114 119 public void doExecute(AdminCommandsServiceMBean acs) throws Exception { 120 String result = acs.listComponents(true, false, true, getState(), getSharedLibraryName(), getServiceAssemblyName()); 121 if (xmlOutput != null) { 122 getProject().setProperty(xmlOutput, result); 123 } 124 log(result, Project.MSG_WARN); 125 } 126 127 } 128 | Popular Tags |