You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by st...@apache.org on 2015/02/23 11:35:55 UTC
[40/58] [abbrv] incubator-taverna-plugin-component git commit:
org.apache.taverna.component.ui
http://git-wip-us.apache.org/repos/asf/incubator-taverna-plugin-component/blob/43334c1d/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentActivityContextViewFactory.java
----------------------------------------------------------------------
diff --git a/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentActivityContextViewFactory.java b/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentActivityContextViewFactory.java
new file mode 100644
index 0000000..1c3bb2a
--- /dev/null
+++ b/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentActivityContextViewFactory.java
@@ -0,0 +1,121 @@
+package org.apache.taverna.component.ui.view;
+
+import static org.apache.taverna.component.api.config.ComponentConfig.URI;
+
+import java.awt.Frame;
+import java.net.MalformedURLException;
+import java.util.Arrays;
+import java.util.List;
+
+import javax.swing.Action;
+
+import org.apache.taverna.component.api.ComponentFactory;
+import org.apache.taverna.component.ui.config.ComponentConfigureAction;
+
+import uk.org.taverna.commons.services.ServiceRegistry;
+import uk.org.taverna.scufl2.api.activity.Activity;
+import net.sf.taverna.t2.servicedescriptions.ServiceDescriptionRegistry;
+import net.sf.taverna.t2.workbench.activityicons.ActivityIconManager;
+import net.sf.taverna.t2.workbench.configuration.colour.ColourManager;
+import net.sf.taverna.t2.workbench.edits.EditManager;
+import net.sf.taverna.t2.workbench.file.FileManager;
+import net.sf.taverna.t2.workbench.ui.actions.activity.HTMLBasedActivityContextualView;
+import net.sf.taverna.t2.workbench.ui.views.contextualviews.ContextualView;
+import net.sf.taverna.t2.workbench.ui.views.contextualviews.activity.ContextualViewFactory;
+
+public class ComponentActivityContextViewFactory implements
+ ContextualViewFactory<Activity> {
+ private ColourManager colourManager;
+ private ViewUtil util;
+ private ComponentFactory factory;
+ private ActivityIconManager aim;
+ private ServiceDescriptionRegistry sdr;
+ private EditManager em;
+ private FileManager fm;
+ private ServiceRegistry sr;
+
+ public void setComponentFactory(ComponentFactory factory) {
+ this.factory = factory;
+ }
+
+ public void setColourManager(ColourManager colourManager) {
+ this.colourManager = colourManager;
+ }
+
+ public void setViewUtils(ViewUtil util) {
+ this.util = util;
+ }
+
+ public void setIconManager(ActivityIconManager aim) {
+ this.aim = aim;
+ }
+
+ public void setServiceDescriptionRegistry(ServiceDescriptionRegistry sdr) {
+ this.sdr = sdr;
+ }
+
+ public void setEditManager(EditManager em) {
+ this.em = em;
+ }
+
+ public void setFileManager(FileManager fm) {
+ this.fm = fm;
+ }
+
+ public void setServiceTypeRegistry(ServiceRegistry sr) {
+ this.sr = sr;
+ }
+
+ @Override
+ public boolean canHandle(Object selection) {
+ return selection instanceof Activity
+ && ((Activity) selection).getType().equals(URI);
+ }
+
+ @Override
+ public List<ContextualView> getViews(Activity selection) {
+ return Arrays.<ContextualView>asList(new ComponentActivityContextualView(selection));
+ }
+
+ @SuppressWarnings("serial")
+ private class ComponentActivityContextualView extends
+ HTMLBasedActivityContextualView {
+ public ComponentActivityContextualView(Activity activity) {
+ super(activity, colourManager);
+ init();
+ }
+
+ private void init() {
+ }
+
+ @Override
+ public String getViewTitle() {
+ return "Component service";
+ }
+
+ /**
+ * View position hint
+ */
+ @Override
+ public int getPreferredPosition() {
+ // We want to be on top
+ return 100;
+ }
+
+ @Override
+ public Action getConfigureAction(Frame owner) {
+ return new ComponentConfigureAction(getActivity(), owner, factory,
+ aim, sdr, em, fm, sr);
+ }
+
+ @Override
+ protected String getRawTableRowsHtml() {
+ try {
+ return util.getRawTablesHtml(getConfigBean());
+ } catch (MalformedURLException e) {
+ return "<tr><td>malformed URL: <pre>" + e.getMessage()
+ + "</pre></td></tr>";
+ }
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-taverna-plugin-component/blob/43334c1d/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentActivitySemanticAnnotationContextViewFactory.java
----------------------------------------------------------------------
diff --git a/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentActivitySemanticAnnotationContextViewFactory.java b/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentActivitySemanticAnnotationContextViewFactory.java
new file mode 100644
index 0000000..7151c7f
--- /dev/null
+++ b/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentActivitySemanticAnnotationContextViewFactory.java
@@ -0,0 +1,135 @@
+package org.apache.taverna.component.ui.view;
+
+import static org.apache.log4j.Logger.getLogger;
+import static org.apache.taverna.component.api.config.ComponentConfig.URI;
+
+import java.net.MalformedURLException;
+import java.util.Arrays;
+import java.util.List;
+
+import org.apache.log4j.Logger;
+import org.apache.taverna.component.api.ComponentException;
+import org.apache.taverna.component.api.ComponentFactory;
+import org.apache.taverna.component.api.profile.Profile;
+import org.apache.taverna.component.ui.ComponentActivityConfigurationBean;
+import org.apache.taverna.component.ui.annotation.AbstractSemanticAnnotationContextualView;
+
+import uk.org.taverna.scufl2.api.activity.Activity;
+import uk.org.taverna.scufl2.api.core.Workflow;
+import uk.org.taverna.scufl2.api.port.InputActivityPort;
+import uk.org.taverna.scufl2.api.port.InputWorkflowPort;
+import uk.org.taverna.scufl2.api.port.OutputActivityPort;
+import uk.org.taverna.scufl2.api.port.OutputWorkflowPort;
+import uk.org.taverna.scufl2.api.port.Port;
+import net.sf.taverna.t2.workbench.file.FileManager;
+import net.sf.taverna.t2.workbench.ui.views.contextualviews.ContextualView;
+import net.sf.taverna.t2.workbench.ui.views.contextualviews.activity.ContextualViewFactory;
+
+public class ComponentActivitySemanticAnnotationContextViewFactory implements
+ ContextualViewFactory<Object> {
+ public static final String VIEW_TITLE = "Inherited Semantic Annotations";
+ private static final Logger logger = getLogger(ComponentActivitySemanticAnnotationContextViewFactory.class);
+
+ private FileManager fm;
+ private ComponentFactory factory;
+
+ public void setFileManager(FileManager fm) {
+ this.fm = fm;
+ }
+
+ public void setComponentFactory(ComponentFactory factory) {
+ this.factory = factory;
+ }
+
+ @Override
+ public boolean canHandle(Object selection) {
+ return getContainingComponentActivity(selection) != null;
+ }
+
+ public Activity getContainingComponentActivity(Object selection) {
+ if (selection instanceof Activity) {
+ Activity a = (Activity) selection;
+ if (a.getType().equals(URI))
+ return a;
+ }
+ if (selection instanceof InputActivityPort
+ || selection instanceof OutputActivityPort)
+ return getContainingComponentActivity(((OutputActivityPort) selection)
+ .getParent());
+ return null;
+ }
+
+ @Override
+ public List<ContextualView> getViews(Object selection) {
+ return Arrays
+ .<ContextualView> asList(new SemanticAnnotationCV(
+ selection));
+ }
+
+ @SuppressWarnings("serial")
+ private class SemanticAnnotationCV extends
+ AbstractSemanticAnnotationContextualView {
+ private Profile componentProfile;
+
+ public SemanticAnnotationCV(Object selection) {
+ super(fm, false);
+ Activity componentActivity = getContainingComponentActivity(selection);
+ try {
+ ComponentActivityConfigurationBean configuration = new ComponentActivityConfigurationBean(
+ componentActivity.getConfiguration(), factory);
+ setAnnotatedThing(selection, configuration.getVersion()
+ .getImplementation().getMainWorkflow());
+ componentProfile = configuration.getComponent().getFamily()
+ .getComponentProfile();
+ setProfile(selection);
+ super.initialise();
+ } catch (ComponentException e) {
+ logger.error("problem querying registry", e);
+ } catch (MalformedURLException e) {
+ logger.error("malformed URL in component description", e);
+ }
+ }
+
+ private void setAnnotatedThing(Object selection,
+ Workflow underlyingDataflow) {
+ if (selection instanceof Activity) {
+ setAnnotated(underlyingDataflow);
+ } else if (selection instanceof InputActivityPort) {
+ String name = ((Port) selection).getName();
+ for (InputWorkflowPort dip : underlyingDataflow.getInputPorts())
+ if (dip.getName().equals(name)) {
+ setAnnotated(dip);
+ break;
+ }
+ } else if (selection instanceof OutputActivityPort) {
+ String name = ((Port) selection).getName();
+ for (OutputWorkflowPort dop : underlyingDataflow
+ .getOutputPorts())
+ if (dop.getName().equals(name)) {
+ setAnnotated(dop);
+ break;
+ }
+ }
+ }
+
+ private void setProfile(Object selection) throws ComponentException {
+ if (componentProfile == null)
+ return;
+ if (selection instanceof Activity) {
+ setSemanticAnnotationProfiles(componentProfile
+ .getSemanticAnnotations());
+ } else if (selection instanceof InputActivityPort) {
+ setSemanticAnnotationProfiles(componentProfile
+ .getInputSemanticAnnotationProfiles());
+ } else if (selection instanceof OutputActivityPort) {
+ setSemanticAnnotationProfiles(componentProfile
+ .getOutputSemanticAnnotationProfiles());
+ }
+ }
+
+ @Override
+ public String getViewTitle() {
+ return VIEW_TITLE;
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-taverna-plugin-component/blob/43334c1d/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentActivitySemanticAnnotationPanel.java
----------------------------------------------------------------------
diff --git a/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentActivitySemanticAnnotationPanel.java b/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentActivitySemanticAnnotationPanel.java
new file mode 100644
index 0000000..6e45c84
--- /dev/null
+++ b/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentActivitySemanticAnnotationPanel.java
@@ -0,0 +1,93 @@
+package org.apache.taverna.component.ui.view;
+
+import static java.awt.Color.GRAY;
+import static java.awt.Color.WHITE;
+import static java.awt.GridBagConstraints.BOTH;
+import static java.awt.GridBagConstraints.EAST;
+import static java.awt.GridBagConstraints.HORIZONTAL;
+import static java.awt.GridBagConstraints.SOUTHEAST;
+import static java.lang.String.format;
+import static org.apache.taverna.component.ui.annotation.SemanticAnnotationUtils.getDisplayName;
+import static org.apache.taverna.component.ui.annotation.SemanticAnnotationUtils.getObjectName;
+
+import java.awt.Component;
+import java.awt.Graphics;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.Insets;
+import java.util.Set;
+
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JTextArea;
+import javax.swing.border.AbstractBorder;
+import javax.swing.border.EmptyBorder;
+
+import org.apache.taverna.component.api.profile.SemanticAnnotationProfile;
+
+import com.hp.hpl.jena.ontology.OntProperty;
+import com.hp.hpl.jena.rdf.model.Statement;
+
+public class ComponentActivitySemanticAnnotationPanel extends JPanel {
+ private static final long serialVersionUID = 3599768150252711758L;
+ private static final String ANNTYPE_MSG = "Annotation type : %s";
+ private static final String NONE_MSG = "No semantic annotations";
+ private SemanticAnnotationProfile profile;
+ private final Set<Statement> statements;
+
+ public ComponentActivitySemanticAnnotationPanel(
+ SemanticAnnotationProfile profile, Set<Statement> statements) {
+ this.profile = profile;
+ this.statements = statements;
+ initialize();
+ }
+
+ private void initialize() {
+ setLayout(new GridBagLayout());
+ setBorder(new AbstractBorder() {
+ private static final long serialVersionUID = -5921448975807056953L;
+
+ @Override
+ public void paintBorder(Component c, Graphics g, int x, int y,
+ int width, int height) {
+ g.setColor(GRAY);
+ g.drawLine(x, y + height - 1, x + width - 1, y + height - 1);
+ }
+ });
+
+ GridBagConstraints c = new GridBagConstraints();
+ c.anchor = SOUTHEAST;
+ c.fill = BOTH;
+ c.weightx = 1;
+ c.gridx = 0;
+
+ OntProperty predicate = profile.getPredicate();
+ c.gridwidth = 2;
+ JLabel label = new JLabel(format(ANNTYPE_MSG, getDisplayName(predicate)));
+ label.setBorder(new EmptyBorder(5, 5, 5, 5));
+ label.setBackground(WHITE);
+ label.setOpaque(true);
+ add(label, c);
+
+ c.insets = new Insets(5, 7, 0, 0);
+ c.anchor = EAST;
+ c.fill = HORIZONTAL;
+ if (statements.isEmpty()) {
+ c.gridwidth = 2;
+ // c.weightx = 1;
+ // c.gridy++;
+ add(new JLabel(NONE_MSG), c);
+ } else {
+ c.gridwidth = 1;
+ for (Statement statement : statements) {
+ c.gridx = 0;
+ c.weightx = 1;
+ JTextArea value = new JTextArea(getObjectName(statement));
+ value.setBackground(WHITE);
+ value.setOpaque(true);
+ value.setBorder(new EmptyBorder(2, 4, 2, 4));
+ add(value, c);
+ }
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-taverna-plugin-component/blob/43334c1d/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentContextViewFactory.java
----------------------------------------------------------------------
diff --git a/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentContextViewFactory.java b/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentContextViewFactory.java
new file mode 100644
index 0000000..349e298
--- /dev/null
+++ b/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentContextViewFactory.java
@@ -0,0 +1,42 @@
+package org.apache.taverna.component.ui.view;
+
+import static org.apache.taverna.component.api.config.ComponentConfig.URI;
+
+import java.util.Arrays;
+import java.util.List;
+
+import org.apache.taverna.component.api.Version;
+
+import net.sf.taverna.t2.workbench.file.FileManager;
+import net.sf.taverna.t2.workbench.ui.views.contextualviews.ContextualView;
+import net.sf.taverna.t2.workbench.ui.views.contextualviews.activity.ContextualViewFactory;
+import uk.org.taverna.scufl2.api.activity.Activity;
+import uk.org.taverna.scufl2.api.container.WorkflowBundle;
+
+public class ComponentContextViewFactory implements
+ ContextualViewFactory<WorkflowBundle> {
+ private FileManager fileManager;
+
+ public void setFileManager(FileManager fileManager) {
+ this.fileManager = fileManager;
+ }
+
+ @Override
+ public boolean canHandle(Object selection) {
+ if (selection instanceof WorkflowBundle) {
+ Object dataflowSource = fileManager
+ .getDataflowSource((WorkflowBundle) selection);
+ //FIXME Is this right?
+ return dataflowSource instanceof Version.ID;
+ }
+ return selection instanceof Activity
+ && ((Activity) selection).getType().equals(URI);
+ }
+
+ @Override
+ public List<ContextualView> getViews(WorkflowBundle selection) {
+ Object dataflowSource = fileManager.getDataflowSource(selection);
+ return Arrays.<ContextualView> asList(new ComponentContextualView(
+ (Version.ID) dataflowSource));
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-taverna-plugin-component/blob/43334c1d/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentContextualView.java
----------------------------------------------------------------------
diff --git a/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentContextualView.java b/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentContextualView.java
new file mode 100644
index 0000000..adca544
--- /dev/null
+++ b/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ComponentContextualView.java
@@ -0,0 +1,75 @@
+package org.apache.taverna.component.ui.view;
+
+import static java.lang.String.format;
+//import static org.apache.taverna.component.ui.view.ViewUtil.getRawTablesHtml;
+import static net.sf.taverna.t2.lang.ui.HtmlUtils.buildTableOpeningTag;
+import static net.sf.taverna.t2.lang.ui.HtmlUtils.createEditorPane;
+import static net.sf.taverna.t2.lang.ui.HtmlUtils.getHtmlHead;
+import static net.sf.taverna.t2.lang.ui.HtmlUtils.panelForHtml;
+
+import java.awt.Color;
+
+import javax.swing.JComponent;
+import javax.swing.JEditorPane;
+
+import org.apache.taverna.component.api.Version;
+
+import net.sf.taverna.t2.workbench.configuration.colour.ColourManager;
+import net.sf.taverna.t2.workbench.ui.views.contextualviews.ContextualView;
+
+@SuppressWarnings("serial")
+public class ComponentContextualView extends ContextualView {
+ private JEditorPane editorPane;
+ private final Version.ID component;
+ ColourManager colourManager;//FIXME beaninject
+ ViewUtil viewUtils;//FIXME beaninject;
+
+ public ComponentContextualView(Version.ID component) {
+ this.component = component;
+ initView();
+ }
+
+ @Override
+ public JComponent getMainFrame() {
+ editorPane = createEditorPane(buildHtml());
+ return panelForHtml(editorPane);
+ }
+
+ private String buildHtml() {
+ StringBuilder html = new StringBuilder(getHtmlHead(getBackgroundColour()));
+ html.append(buildTableOpeningTag());
+ viewUtils.getRawTablesHtml(component, html);
+ return html.append("</table></body></html>").toString();
+ }
+
+ public String getBackgroundColour() {
+ Color colour = colourManager.getPreferredColour(
+ "org.apache.taverna.component.registry.Component");
+ return format("#%1$2x%2$2x%3$2x", colour.getRed(), colour.getGreen(),
+ colour.getBlue());
+ }
+
+ @Override
+ public int getPreferredPosition() {
+ return 50;
+ }
+
+ private static int MAX_LENGTH = 50;
+
+ private String limitName(String fullName) {
+ if (fullName.length() > MAX_LENGTH)
+ return fullName.substring(0, MAX_LENGTH - 3) + "...";
+ return fullName;
+ }
+
+ @Override
+ public String getViewTitle() {
+ return "Component " + limitName(component.getComponentName());
+ }
+
+ @Override
+ public void refreshView() {
+ editorPane.setText(buildHtml());
+ repaint();
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-taverna-plugin-component/blob/43334c1d/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ViewUtil.java
----------------------------------------------------------------------
diff --git a/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ViewUtil.java b/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ViewUtil.java
new file mode 100644
index 0000000..b6f6800
--- /dev/null
+++ b/taverna-component-activity-ui/src/main/java/org/apache/taverna/component/ui/view/ViewUtil.java
@@ -0,0 +1,162 @@
+/**
+ *
+ */
+package org.apache.taverna.component.ui.view;
+
+import static java.lang.String.format;
+import static org.apache.log4j.Logger.getLogger;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.Set;
+
+import org.apache.log4j.Logger;
+import org.apache.taverna.component.api.Component;
+import org.apache.taverna.component.api.ComponentFactory;
+import org.apache.taverna.component.api.Family;
+import org.apache.taverna.component.api.Version;
+import org.apache.taverna.component.ui.ComponentActivityConfigurationBean;
+
+import uk.org.taverna.scufl2.api.configurations.Configuration;
+import uk.org.taverna.scufl2.api.container.WorkflowBundle;
+import uk.org.taverna.scufl2.api.port.InputWorkflowPort;
+import uk.org.taverna.scufl2.api.port.OutputWorkflowPort;
+
+/**
+ * @author alanrw
+ */
+public class ViewUtil {
+ private static Logger logger = getLogger(ViewUtil.class);
+
+ private static final String VERSION_DESCRIPTION_LABEL = "Component version description";
+ private static final String COMPONENT_DESCRIPTION_LABEL = "Component description";
+ private static final String FAMILY_DESCRIPTION_LABEL = "Family description";
+
+ private static final String plainFormat = "<tr><td><b>%1$s</b></td><td nowrap=\"wrap\" style=\"width:100px;\">%2$s</td></tr>";
+ private static final String headerFormat = "<tr><th>%1$s</th><th>%2$s</th></tr>";
+ private static final String rowFormat = "<tr><td><b>%1$s</b></td><td>%2$s</td></tr>";
+ private static final String rowLinkFormat = "<tr><td><b>%1$s</b></td><td><a href=\"%3$s\">%2$s</a></td></tr>";
+ private static final String descriptionFormat = "<tr><td colspan=\"2\"><b>%1$s</b></td></tr><tr><td colspan=\"2\" nowrap=\"wrap\" style=\"width:100px;\">%2$s</td></tr>";
+
+ private ComponentFactory factory;//FIXME beaninject
+
+ public void setComponentFactory(ComponentFactory factory) {
+ this.factory = factory;
+ }
+
+ public String getRawTablesHtml(Version.ID id) {
+ StringBuilder html = new StringBuilder();
+ getRawTablesHtml(id, html);
+ return html.toString();
+ }
+
+ public String getRawTablesHtml(Configuration config) throws MalformedURLException {
+ StringBuilder html = new StringBuilder();
+ getRawTablesHtml(
+ new ComponentActivityConfigurationBean(
+ config.getJsonAsObjectNode(), factory), html);
+ return html.toString();
+ }
+
+ public void getRawTablesHtml(Version.ID id, StringBuilder html) {
+ URL registryBase = id.getRegistryBase();
+ String registryLink = null;
+ if (registryBase.getProtocol().startsWith("http"))
+ registryLink = registryBase.toExternalForm();
+ /*
+ * \u200b is a zero-width space, so the HTML renderer can know to break
+ * lines.
+ */
+ String registryName = registryBase.toString().replaceAll("/", "\u200b/");
+ appendRow(html, "Component registry base", registryName, registryLink);
+
+ String familyName = id.getFamilyName();
+ appendRow(html, "Component family", familyName, null);
+ try {
+ Family family = factory.getFamily(registryBase, familyName);
+ if (family != null)
+ appendDescriptionHtml(html, FAMILY_DESCRIPTION_LABEL,
+ family.getDescription());
+ } catch (Exception e) {
+ logger.error("failed to get component family description", e);
+ }
+
+ String componentName = id.getComponentName();
+ String helpLink = null;
+ try {
+ URL helpURL = factory.getVersion(id).getHelpURL();
+ if (helpURL != null)
+ helpLink = helpURL.toExternalForm();
+ } catch (Exception e) {
+ logger.error(e);
+ }
+
+ appendRow(html, "Component name", componentName, helpLink);
+ try {
+ Component component = factory.getComponent(registryBase,
+ familyName, componentName);
+ if (component != null)
+ appendDescriptionHtml(html, COMPONENT_DESCRIPTION_LABEL,
+ component.getDescription());
+ } catch (Exception e) {
+ logger.error("failed to get component description", e);
+ }
+
+ Integer componentVersion = id.getComponentVersion();
+
+ if (componentVersion == null)
+ appendRow(html, "Component version", "N/A", helpLink);
+ else {
+ appendRow(html, "Component version", componentVersion, helpLink);
+ try {
+ Version version = factory.getVersion(registryBase,
+ familyName, componentName, componentVersion);
+ if (version != null) {
+ appendDescriptionHtml(html, VERSION_DESCRIPTION_LABEL,
+ version.getDescription());
+ WorkflowBundle impl = version.getImplementation();
+ Set<InputWorkflowPort> inputs = impl.getMainWorkflow().getInputPorts();
+ if (!inputs.isEmpty()) {
+ appendHeaderRow(html, "Input Port Name", "Depth");
+ for (InputWorkflowPort input : inputs)
+ appendPlainRow(html, input.getName(), input.getDepth());
+ }
+ Set<OutputWorkflowPort> outputs = impl.getMainWorkflow().getOutputPorts();
+ if (!outputs.isEmpty()) {
+ appendHeaderRow(html, "Output Port Name", "Depth");
+ for (OutputWorkflowPort output : outputs) {
+ //FIXME get depth of output ports!
+ appendPlainRow(html, output.getName(), -1 /*output.getDepth()*/);
+ }
+ }
+ }
+ } catch (Exception e) {
+ logger.error("failed to get component version description", e);
+ }
+ }
+ }
+
+ private static void appendRow(StringBuilder html, Object label,
+ Object value, String link) {
+ if (link == null)
+ html.append(format(rowFormat, label, value));
+ else
+ html.append(format(rowLinkFormat, label, value, link));
+ }
+
+ private static void appendHeaderRow(StringBuilder html, Object label1,
+ Object label2) {
+ html.append(format(headerFormat, label1, label2));
+ }
+
+ private static void appendPlainRow(StringBuilder html, Object value1,
+ Object value2) {
+ html.append(format(plainFormat, value1, value2));
+ }
+
+ private static void appendDescriptionHtml(StringBuilder html,
+ String header, String description) {
+ if ((description != null) && !description.isEmpty())
+ html.append(format(descriptionFormat, header, description));
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-taverna-plugin-component/blob/43334c1d/taverna-component-activity-ui/src/main/resources/META-INF/services/net.sf.taverna.t2.component.annotation.PropertyPanelFactorySPI
----------------------------------------------------------------------
diff --git a/taverna-component-activity-ui/src/main/resources/META-INF/services/net.sf.taverna.t2.component.annotation.PropertyPanelFactorySPI b/taverna-component-activity-ui/src/main/resources/META-INF/services/net.sf.taverna.t2.component.annotation.PropertyPanelFactorySPI
index 920dcd1..c025707 100644
--- a/taverna-component-activity-ui/src/main/resources/META-INF/services/net.sf.taverna.t2.component.annotation.PropertyPanelFactorySPI
+++ b/taverna-component-activity-ui/src/main/resources/META-INF/services/net.sf.taverna.t2.component.annotation.PropertyPanelFactorySPI
@@ -1,5 +1,5 @@
-net.sf.taverna.t2.component.annotation.AnnotationPropertyPanelFactory
-net.sf.taverna.t2.component.annotation.DatatypePropertyPanelFactory
-net.sf.taverna.t2.component.annotation.ObjectPropertyWithIndividualsPanelFactory
-net.sf.taverna.t2.component.annotation.DateTimePropertyPanelFactory
-net.sf.taverna.t2.component.annotation.FallbackPropertyPanelFactory
\ No newline at end of file
+org.apache.taverna.component.ui.annotation.AnnotationPropertyPanelFactory
+org.apache.taverna.component.ui.annotation.DatatypePropertyPanelFactory
+org.apache.taverna.component.ui.annotation.ObjectPropertyWithIndividualsPanelFactory
+org.apache.taverna.component.ui.annotation.DateTimePropertyPanelFactory
+org.apache.taverna.component.ui.annotation.FallbackPropertyPanelFactory
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-taverna-plugin-component/blob/43334c1d/taverna-component-activity-ui/src/main/resources/META-INF/services/net.sf.taverna.t2.workbench.report.explainer.VisitExplainer
----------------------------------------------------------------------
diff --git a/taverna-component-activity-ui/src/main/resources/META-INF/services/net.sf.taverna.t2.workbench.report.explainer.VisitExplainer b/taverna-component-activity-ui/src/main/resources/META-INF/services/net.sf.taverna.t2.workbench.report.explainer.VisitExplainer
index 72e27be..829fdbc 100644
--- a/taverna-component-activity-ui/src/main/resources/META-INF/services/net.sf.taverna.t2.workbench.report.explainer.VisitExplainer
+++ b/taverna-component-activity-ui/src/main/resources/META-INF/services/net.sf.taverna.t2.workbench.report.explainer.VisitExplainer
@@ -1 +1 @@
-net.sf.taverna.t2.component.ui.file.ComponentDataflowHealthCheckExplainer
+org.apache.taverna.component.ui.file.ComponentDataflowHealthCheckExplainer
http://git-wip-us.apache.org/repos/asf/incubator-taverna-plugin-component/blob/43334c1d/taverna-component-activity-ui/src/main/resources/META-INF/spring/component-activity-context.xml
----------------------------------------------------------------------
diff --git a/taverna-component-activity-ui/src/main/resources/META-INF/spring/component-activity-context.xml b/taverna-component-activity-ui/src/main/resources/META-INF/spring/component-activity-context.xml
index 4c03aba..18444d4 100644
--- a/taverna-component-activity-ui/src/main/resources/META-INF/spring/component-activity-context.xml
+++ b/taverna-component-activity-ui/src/main/resources/META-INF/spring/component-activity-context.xml
@@ -10,16 +10,16 @@
http://www.springframework.org/schema/util http://www.springframework.org/schema/beans/spring-util.xsd">
<context:annotation-config />
- <bean id="prefs" class="net.sf.taverna.t2.component.preference.ComponentPreference">
+ <bean id="prefs" class="org.apache.taverna.component.ui.preference.ComponentPreference">
<constructor-arg name="cm" ref="configManager" />
<constructor-arg name="factory" ref="componentFactory" />
</bean>
- <bean id="preferencePanel" class="net.sf.taverna.t2.component.ui.preference.ComponentPreferencePanel">
+ <bean id="preferencePanel" class="org.apache.taverna.component.ui.preference.ComponentPreferencePanel">
<constructor-arg name="componentFactory" ref="componentFactory" />
<constructor-arg name="preferences" ref="prefs" />
</bean>
<bean id="componentSupport"
- class="net.sf.taverna.t2.component.ui.menu.component.ComponentCreatorSupport">
+ class="org.apache.taverna.component.ui.menu.component.ComponentCreatorSupport">
<property name="componentFactory" ref="componentFactory" />
<property name="preferences" ref="prefs" />
<property name="fileManager" ref="fileManager" />
@@ -27,9 +27,9 @@
<property name="fileType" ref="fileType" />
<property name="selectionManager" ref="selectionManager" />
</bean>
- <bean id="fileType" class="net.sf.taverna.t2.component.ui.util.ComponentFileType" />
- <bean id="icon" class="net.sf.taverna.t2.component.ui.serviceprovider.ComponentServiceIcon" />
- <bean id="utils" class="net.sf.taverna.t2.component.ui.util.Utils">
+ <bean id="fileType" class="org.apache.taverna.component.ui.util.ComponentFileType" />
+ <bean id="icon" class="org.apache.taverna.component.ui.serviceprovider.ComponentServiceIcon" />
+ <bean id="utils" class="org.apache.taverna.component.ui.util.Utils">
<property name="componentFactory" ref="componentFactory" />
<property name="fileManager" ref="fileManager" />
<property name="icon" ref="icon" />
@@ -43,7 +43,7 @@
<entry key="name" value="componentServiceProvider" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.serviceprovider.ComponentServiceProvider">
+ class="org.apache.taverna.component.ui.serviceprovider.ComponentServiceProvider">
<constructor-arg ref="componentFactory" index="0" />
<constructor-arg ref="prefs" index="1" />
<constructor-arg ref="icon" index="2" />
@@ -56,7 +56,7 @@
<!-- === Startup === -->
<osgi:service interface="net.sf.taverna.t2.workbench.StartupSPI">
- <bean class="net.sf.taverna.t2.component.ui.file.FileManagerObserver">
+ <bean class="org.apache.taverna.component.ui.file.FileManagerObserver">
<property name="colourManager" ref="colourManager" />
<property name="fileManager" ref="fileManager" />
<property name="graphView" ref="graphView" />
@@ -66,13 +66,13 @@
<!-- === Dataflow persistence handlers === -->
<osgi:service interface="net.sf.taverna.t2.workbench.file.DataflowPersistenceHandler">
- <bean class="net.sf.taverna.t2.component.ui.file.ComponentOpener">
+ <bean class="org.apache.taverna.component.ui.file.ComponentOpener">
<property name="componentFactory" ref="componentFactory" />
<property name="fileType" ref="fileType" />
</bean>
</osgi:service>
<osgi:service interface="net.sf.taverna.t2.workbench.file.DataflowPersistenceHandler">
- <bean class="net.sf.taverna.t2.component.ui.file.ComponentSaver">
+ <bean class="org.apache.taverna.component.ui.file.ComponentSaver">
<property name="componentFactory" ref="componentFactory" />
<property name="fileType" ref="fileType" />
</bean>
@@ -80,7 +80,7 @@
<!-- === Health checkers === -->
<osgi:service interface="net.sf.taverna.t2.workflowmodel.health.HealthChecker">
- <bean class="net.sf.taverna.t2.component.ui.file.ComponentDataflowHealthChecker">
+ <bean class="org.apache.taverna.component.ui.file.ComponentDataflowHealthChecker">
<property name="componentFactory" ref="componentFactory" />
<property name="fileManager" ref="fileManager" />
</bean>
@@ -92,7 +92,7 @@
<entry key="name" value="componentConfigurationUI" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.preference.ComponentPreferenceUIFactory">
+ class="org.apache.taverna.component.ui.preference.ComponentPreferenceUIFactory">
<property name="configPanel" ref="preferencePanel" />
<property name="preferences" ref="prefs" />
</bean>
@@ -105,7 +105,7 @@
<entry key="name" value="componentActivityContextView" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.view.ComponentActivityContextViewFactory">
+ class="org.apache.taverna.component.ui.view.ComponentActivityContextViewFactory">
<property name="colourManager" ref="colourManager" />
<property name="componentFactory" ref="componentFactory" />
<property name="editManager" ref="editManager" />
@@ -121,7 +121,7 @@
<osgi:service-properties>
<entry key="name" value="componentContextView" />
</osgi:service-properties>
- <bean class="net.sf.taverna.t2.component.ui.view.ComponentContextViewFactory">
+ <bean class="org.apache.taverna.component.ui.view.ComponentContextViewFactory">
<property name="fileManager" ref="fileManager" />
</bean>
</osgi:service>
@@ -131,7 +131,7 @@
<entry key="name" value="componentActivitySemanticAnnotationContextView" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.view.ComponentActivitySemanticAnnotationContextViewFactory">
+ class="org.apache.taverna.component.ui.view.ComponentActivitySemanticAnnotationContextViewFactory">
<property name="componentFactory" ref="componentFactory" />
<property name="fileManager" ref="fileManager" />
</bean>
@@ -142,7 +142,7 @@
<entry key="name" value="semanticAnnotationContextView" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.annotation.SemanticAnnotationContextualViewFactory">
+ class="org.apache.taverna.component.ui.annotation.SemanticAnnotationContextualViewFactory">
<property name="componentFactory" ref="componentFactory" />
<property name="fileManager" ref="fileManager" />
</bean>
@@ -154,7 +154,7 @@
<entry key="name" value="componentConfigureAction" />
</osgi:service-properties>
<bean id="componentConfigureMenuAction"
- class="net.sf.taverna.t2.component.ui.menu.ComponentConfigureMenuAction">
+ class="org.apache.taverna.component.ui.menu.ComponentConfigureMenuAction">
<property name="activityIconManager" ref="iconManager" />
<property name="componentFactory" ref="componentFactory" />
<property name="editManager" ref="editManager" />
@@ -164,7 +164,7 @@
</bean>
</osgi:service>
<bean id="componentServiceCreatorMenuAction"
- class="net.sf.taverna.t2.component.ui.menu.component.ComponentServiceCreatorMenuAction">
+ class="org.apache.taverna.component.ui.menu.component.ComponentServiceCreatorMenuAction">
<description>Don't publish this bean yet.</description>
<property name="icon" ref="icon" />
<property name="selectionManager" ref="selectionManager" />
@@ -175,7 +175,7 @@
<entry key="name" value="nestedWorkflowCreatorAction" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.menu.NestedWorkflowCreatorMenuAction">
+ class="org.apache.taverna.component.ui.menu.NestedWorkflowCreatorMenuAction">
<property name="editManager" ref="editManager" />
<property name="graphView" ref="graphView" />
<property name="selectionManager" ref="selectionManager" />
@@ -186,7 +186,7 @@
<entry key="name" value="componentReplaceAction" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.menu.ReplaceByComponentMenuAction">
+ class="org.apache.taverna.component.ui.menu.ReplaceByComponentMenuAction">
<property name="componentFactory" ref="componentFactory" />
<property name="editManager" ref="editManager" />
<property name="icon" ref="icon" />
@@ -199,7 +199,7 @@
<entry key="name" value="componentOpenAction" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.menu.OpenComponentFromComponentActivityMenuAction">
+ class="org.apache.taverna.component.ui.menu.OpenComponentFromComponentActivityMenuAction">
<property name="componentFactory" ref="componentFactory" />
<property name="fileManager" ref="fileManager" />
<property name="graphView" ref="graphView" />
@@ -209,19 +209,19 @@
</bean>
</osgi:service>
<osgi:service interface="net.sf.taverna.t2.ui.menu.MenuComponent">
- <bean class="net.sf.taverna.t2.component.ui.menu.ComponentMenu" />
+ <bean class="org.apache.taverna.component.ui.menu.ComponentMenu" />
</osgi:service>
<osgi:service interface="net.sf.taverna.t2.ui.menu.MenuComponent">
<bean
- class="net.sf.taverna.t2.component.ui.menu.registry.ComponentRegistryMenuSection" />
+ class="org.apache.taverna.component.ui.menu.registry.ComponentRegistryMenuSection" />
</osgi:service>
<osgi:service interface="net.sf.taverna.t2.ui.menu.MenuComponent">
<osgi:service-properties>
<entry key="name" value="componentRegistryManageAction" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.menu.registry.ComponentRegistryManageMenuAction">
+ class="org.apache.taverna.component.ui.menu.registry.ComponentRegistryManageMenuAction">
<property name="configurationFrame"><!-- FIXME --></property>
<property name="icon" ref="icon" />
</bean>
@@ -229,14 +229,14 @@
<osgi:service interface="net.sf.taverna.t2.ui.menu.MenuComponent">
<bean
- class="net.sf.taverna.t2.component.ui.menu.profile.ComponentProfileMenuSection" />
+ class="org.apache.taverna.component.ui.menu.profile.ComponentProfileMenuSection" />
</osgi:service>
<osgi:service interface="net.sf.taverna.t2.ui.menu.MenuComponent">
<osgi:service-properties>
<entry key="name" value="componentProfileImportAction" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.menu.profile.ComponentProfileImportMenuAction">
+ class="org.apache.taverna.component.ui.menu.profile.ComponentProfileImportMenuAction">
<property name="componentFactory" ref="componentFactory" />
<property name="icon" ref="icon" />
<property name="preferences" ref="prefs" />
@@ -247,27 +247,27 @@
<entry key="name" value="componentProfileCopyAction" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.menu.profile.ComponentProfileCopyMenuAction">
+ class="org.apache.taverna.component.ui.menu.profile.ComponentProfileCopyMenuAction">
<property name="preferences" ref="prefs" />
<property name="icon" ref="icon" />
</bean>
</osgi:service>
<bean id="componentProfileDeleteMenuAction"
- class="net.sf.taverna.t2.component.ui.menu.profile.ComponentProfileDeleteMenuAction">
+ class="org.apache.taverna.component.ui.menu.profile.ComponentProfileDeleteMenuAction">
<property name="icon" ref="icon" />
<property name="preferences" ref="prefs" />
</bean>
<osgi:service interface="net.sf.taverna.t2.ui.menu.MenuComponent">
<bean
- class="net.sf.taverna.t2.component.ui.menu.family.ComponentFamilyMenuSection" />
+ class="org.apache.taverna.component.ui.menu.family.ComponentFamilyMenuSection" />
</osgi:service>
<osgi:service interface="net.sf.taverna.t2.ui.menu.MenuComponent">
<osgi:service-properties>
<entry key="name" value="componentFamilyCreateAction" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.menu.family.ComponentFamilyCreateMenuAction">
+ class="org.apache.taverna.component.ui.menu.family.ComponentFamilyCreateMenuAction">
<property name="preferences" ref="prefs" />
<property name="icon" ref="icon" />
</bean>
@@ -277,7 +277,7 @@
<entry key="name" value="componentFamilyDeleteAction" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.menu.family.ComponentFamilyDeleteMenuAction">
+ class="org.apache.taverna.component.ui.menu.family.ComponentFamilyDeleteMenuAction">
<property name="fileManager" ref="fileManager" />
<property name="icon" ref="icon" />
<property name="preferences" ref="prefs" />
@@ -287,14 +287,14 @@
<osgi:service interface="net.sf.taverna.t2.ui.menu.MenuComponent">
<bean
- class="net.sf.taverna.t2.component.ui.menu.component.ComponentMenuSection" />
+ class="org.apache.taverna.component.ui.menu.component.ComponentMenuSection" />
</osgi:service>
<osgi:service interface="net.sf.taverna.t2.ui.menu.MenuComponent">
<osgi:service-properties>
<entry key="name" value="componentCreateAction" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.menu.component.ComponentWorkflowCreatorMenuAction">
+ class="org.apache.taverna.component.ui.menu.component.ComponentWorkflowCreatorMenuAction">
<property name="fileManager" ref="fileManager" />
<property name="graphView" ref="graphView" />
<property name="icon" ref="icon" />
@@ -307,7 +307,7 @@
<entry key="name" value="componentOpenAction" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.menu.component.FileOpenFromComponentMenuAction">
+ class="org.apache.taverna.component.ui.menu.component.FileOpenFromComponentMenuAction">
<property name="fileManager" ref="fileManager" />
<property name="fileType" ref="fileType" />
<property name="graphView" ref="graphView" />
@@ -320,7 +320,7 @@
<entry key="name" value="componentCopyAction" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.menu.component.ComponentCopyMenuAction">
+ class="org.apache.taverna.component.ui.menu.component.ComponentCopyMenuAction">
<property name="icon" ref="icon" />
<property name="preferences" ref="prefs" />
<property name="utils" ref="utils" />
@@ -331,7 +331,7 @@
<entry key="name" value="componentDeleteAction" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.menu.component.ComponentDeleteMenuAction">
+ class="org.apache.taverna.component.ui.menu.component.ComponentDeleteMenuAction">
<property name="fileManager" ref="fileManager" />
<property name="icon" ref="icon" />
<property name="preferences" ref="prefs" />
@@ -343,7 +343,7 @@
<entry key="name" value="componentMergeAction" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.menu.component.ComponentMergeMenuAction">
+ class="org.apache.taverna.component.ui.menu.component.ComponentMergeMenuAction">
<property name="icon" ref="icon" />
<property name="preferences" ref="prefs" />
</bean>
@@ -353,7 +353,7 @@
<entry key="name" value="componentCloseAction" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.menu.component.ComponentCloseMenuAction">
+ class="org.apache.taverna.component.ui.menu.component.ComponentCloseMenuAction">
<property name="closeWorkflowAction"><!-- FIXME net.sf.taverna.t2.workbench.file.impl.actions.CloseWorkflowAction --></property>
<property name="fileManager" ref="fileManager" />
<property name="icon" ref="icon" />
@@ -365,7 +365,7 @@
<entry key="name" value="componentSaveAction" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.ui.menu.component.ComponentSaveMenuAction">
+ class="org.apache.taverna.component.ui.menu.component.ComponentSaveMenuAction">
<property name="saveWorkflowAction"><!-- FIXME net.sf.taverna.t2.workbench.file.impl.actions.SaveWorkflowAction --></property>
<property name="fileManager" ref="fileManager" />
<property name="icon" ref="icon" />
@@ -373,7 +373,7 @@
</bean>
</osgi:service>
<bean id="componentSearchMenuAction"
- class="net.sf.taverna.t2.component.ui.menu.component.ComponentSearchMenuAction">
+ class="org.apache.taverna.component.ui.menu.component.ComponentSearchMenuAction">
<description>Don't publish this bean yet.</description>
<property name="componentFactory" ref="componentFactory" />
<property name="editManager" ref="editManager" />
@@ -389,7 +389,7 @@
<entry key="name" value="annotateSemanticsAction" />
</osgi:service-properties>
<bean
- class="net.sf.taverna.t2.component.annotation.AnnotateSemanticsMenuAction">
+ class="org.apache.taverna.component.ui.annotation.AnnotateSemanticsMenuAction">
<property name="componentFactory" ref="componentFactory" />
<property name="fileManager" ref="fileManager" />
</bean>
@@ -397,16 +397,16 @@
<!--
<bean id="ComponentLocalHealthChecker"
- class="net.sf.taverna.t2.component.ComponentActivityLocalChecker" />
+ class="org.apache.taverna.component.ComponentActivityLocalChecker" />
<bean id="ComponentUpgradeHealthChecker"
- class="net.sf.taverna.t2.component.ComponentActivityUpgradeChecker">
+ class="org.apache.taverna.component.ComponentActivityUpgradeChecker">
<property name="componentUtil" ref="componentUtil" />
</bean>
- <bean id="baseProfileLocator" class="net.sf.taverna.t2.component.profile.BaseProfileLocator">
+ <bean id="baseProfileLocator" class="org.apache.taverna.component.profile.BaseProfileLocator">
<property name="appConfig" ref="app-config" />
</bean>
- <bean id="componentActivityFactory" class="net.sf.taverna.t2.component.ComponentActivityFactory">
+ <bean id="componentActivityFactory" class="org.apache.taverna.component.ComponentActivityFactory">
<property name="componentUtil" ref="componentUtil" />
<property name="dataflowCache" ref="cache" />
<property name="edits" ref="edits" />
@@ -414,32 +414,32 @@
</bean>
<bean id="networkRegistry"
- class="net.sf.taverna.t2.component.registry.standard.NewComponentRegistryFactory">
+ class="org.apache.taverna.component.registry.standard.NewComponentRegistryFactory">
<property name="credentialManager" ref="credentialManager" />
<property name="componentUtil" ref="componentUtil" />
<property name="systemUtils" ref="systemUtil" />
<property name="annotationUtils" ref="annotationUtil" />
</bean>
<bean id="fileRegistry"
- class="net.sf.taverna.t2.component.registry.local.LocalComponentRegistryFactory">
+ class="org.apache.taverna.component.registry.local.LocalComponentRegistryFactory">
<property name="componentUtil" ref="componentUtil" />
<property name="systemUtils" ref="systemUtil" />
</bean>
- <bean id="componentUtil" class="net.sf.taverna.t2.component.registry.ComponentUtil">
+ <bean id="componentUtil" class="org.apache.taverna.component.registry.ComponentUtil">
<property name="networkLocator" ref="networkRegistry" />
<property name="fileLocator" ref="fileRegistry" />
<property name="baseLocator" ref="baseProfileLocator" />
</bean>
- <bean id="cache" class="net.sf.taverna.t2.component.registry.ComponentImplementationCache">
+ <bean id="cache" class="org.apache.taverna.component.registry.ComponentImplementationCache">
<property name="componentUtil" ref="componentUtil" />
</bean>
- <bean id="systemUtil" class="net.sf.taverna.t2.component.utils.SystemUtils">
+ <bean id="systemUtil" class="org.apache.taverna.component.utils.SystemUtils">
<property name="appConfig" ref="app-config" />
<property name="workflowBundler" ref="workflowBundleIO" />
<property name="compilers" ref="compilers" />
</bean>
- <bean id="annotationUtil" class="net.sf.taverna.t2.component.utils.AnnotationUtils" />
+ <bean id="annotationUtil" class="org.apache.taverna.component.utils.AnnotationUtils" />
<osgi:service ref="ComponentLocalHealthChecker"
interface="net.sf.taverna.t2.workflowmodel.health.HealthChecker" />