summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Fisher2010-10-01 11:34:02 (EDT)
committerRyan D. Brooks2010-10-01 11:34:02 (EDT)
commitc8a6d13dd3df14f316869b7af263d0c39d615a44 (patch)
tree8170bd6dc1bd0ee4244ccf7d7e68b72fc011bb64
parent960e0b7dd329c4dc6a5fcb602ae1923ef115bdf1 (diff)
downloadorg.eclipse.osee-c8a6d13dd3df14f316869b7af263d0c39d615a44.zip
org.eclipse.osee-c8a6d13dd3df14f316869b7af263d0c39d615a44.tar.gz
org.eclipse.osee-c8a6d13dd3df14f316869b7af263d0c39d615a44.tar.bz2
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.
-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 88e5b91..088b6cf 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;
}