A method that Executes the command
String result = "";
try {
// Perform the pre run initialization
if (preRunInit())
{
// Retrieve the options used for this command
String targetName = getOption(TARGET_OPTION);
// Retrieve the operand "name"
String componentName = (String) getOperands().get(0);
// Using the command name, we'll determine how to process the command
if (name.equals(SHOW_BINDING_COMPONENT)) {
result = ((JBIAdminCommands) mJbiAdminCommands).showBindingComponent(
componentName,
"",
"",
"",
targetName);
processJBIAdminShowComponentResult(result,componentName);
}
else if (name.equals(SHOW_SERVICE_ENGINE)) {
result = ((JBIAdminCommands) mJbiAdminCommands).showServiceEngine(
componentName,
"",
"",
"",
targetName);
processJBIAdminShowComponentResult(result,componentName);
}
else if (name.equals(SHOW_SHARED_LIBRARY)) {
result = ((JBIAdminCommands) mJbiAdminCommands).showSharedLibrary(
componentName,
"",
targetName);
processJBIAdminShowLibraryResult(result,componentName);
}
else if (name.equals(SHOW_SERVICE_ASSEMBLY)) {
result = ((JBIAdminCommands) mJbiAdminCommands).showServiceAssembly(
componentName,
"",
"",
targetName);
processJBIAdminShowAssemblyResult(result,componentName);
}
}
}
catch (Exception e) {
processTaskException(e);
}