Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Fisher2010-10-01 15:34:02 +0000
committerRyan D. Brooks2010-10-01 15:34:02 +0000
commitc8a6d13dd3df14f316869b7af263d0c39d615a44 (patch)
tree8170bd6dc1bd0ee4244ccf7d7e68b72fc011bb64 /plugins/org.eclipse.osee.ote.message
parent960e0b7dd329c4dc6a5fcb602ae1923ef115bdf1 (diff)
downloadorg.eclipse.osee-c8a6d13dd3df14f316869b7af263d0c39d615a44.tar.gz
org.eclipse.osee-c8a6d13dd3df14f316869b7af263d0c39d615a44.tar.xz
org.eclipse.osee-c8a6d13dd3df14f316869b7af263d0c39d615a44.zip
refactor: Change MessageDefinitionProvider to support multiple providers
Changed MessageDefinitionProvider to no longer have getMetaInfo since it is a wide-open method with a not will defined interface. This was replaced with the generateMessageIndex method since that is the one use case that was being used. This also allows the provider to be responsible for defining how its internal data makes it to the MessageSink instead of forcing the caller to have to know how to interpret the InputStream from getMetaInfo.
Diffstat (limited to 'plugins/org.eclipse.osee.ote.message')
-rw-r--r--plugins/org.eclipse.osee.ote.message/src/org/eclipse/osee/ote/message/MessageDefinitionProvider.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.ote.message/src/org/eclipse/osee/ote/message/MessageDefinitionProvider.java b/plugins/org.eclipse.osee.ote.message/src/org/eclipse/osee/ote/message/MessageDefinitionProvider.java
index 88e5b914a08..088b6cf7772 100644
--- a/plugins/org.eclipse.osee.ote.message/src/org/eclipse/osee/ote/message/MessageDefinitionProvider.java
+++ b/plugins/org.eclipse.osee.ote.message/src/org/eclipse/osee/ote/message/MessageDefinitionProvider.java
@@ -10,8 +10,6 @@
*******************************************************************************/
package org.eclipse.osee.ote.message;
-import java.io.IOException;
-import java.io.InputStream;
/**
* @author Andrew M. Finkbeiner
@@ -28,5 +26,5 @@ public interface MessageDefinitionProvider {
String minorVersion();
- InputStream getMetaInfo(String id) throws IOException;
+ void generateMessageIndex(MessageSink sink) throws Exception;
}

Back to the top