diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-29 06:44:22 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-29 06:44:22 +0000 |
commit | fcef778b4fb5b4ee7d828c1e9cfb62af2d48d869 (patch) | |
tree | 3037a45c5b4fec2e94c20da66a695951dd7b8584 /branches/sca-equinox/modules/binding-jms/src | |
parent | b732557ce29c5cc982957861dfb698a66d4a3e18 (diff) |
Fixed monitor module to avoid having to export monitor implementation classes. Removed dependencies on monitor-logging.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@700000 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
2 files changed, 18 insertions, 19 deletions
diff --git a/branches/sca-equinox/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/impl/JMSBindingProcessor.java b/branches/sca-equinox/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/impl/JMSBindingProcessor.java index 2fa7ea057b..b64734c97d 100644 --- a/branches/sca-equinox/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/impl/JMSBindingProcessor.java +++ b/branches/sca-equinox/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/impl/JMSBindingProcessor.java @@ -30,7 +30,6 @@ import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; import javax.xml.stream.XMLStreamWriter; -import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl; import org.apache.tuscany.sca.assembly.xml.Constants; import org.apache.tuscany.sca.assembly.xml.PolicyAttachPointProcessor; import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint; @@ -135,7 +134,7 @@ public class JMSBindingProcessor implements StAXArtifactProcessor<JMSBinding> { */ private void warning(String message, Object model, Object... messageParameters) { if (monitor != null) { - Problem problem = new ProblemImpl(this.getClass().getName(), "binding-jms-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters); + Problem problem = monitor.createProblem(this.getClass().getName(), "binding-jms-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters); monitor.problem(problem); } } @@ -149,7 +148,7 @@ public class JMSBindingProcessor implements StAXArtifactProcessor<JMSBinding> { */ private void error(String message, Object model, Object... messageParameters) { if (monitor != null) { - Problem problem = new ProblemImpl(this.getClass().getName(), "binding-jms-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters); + Problem problem = monitor.createProblem(this.getClass().getName(), "binding-jms-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters); monitor.problem(problem); } } @@ -445,12 +444,12 @@ public class JMSBindingProcessor implements StAXArtifactProcessor<JMSBinding> { } /** - * <headers JMSType=”string”? - * JMSCorrelationID=”string”? - * JMSDeliveryMode=”PERSISTENT or NON_PERSISTENT”? - * JMSTimeToLive=”long”? - * JMSPriority=”0 .. 9”?> - * <property name=”NMTOKEN” type=”NMTOKEN”?>* + * <headers JMSType=�string�? + * JMSCorrelationID=�string�? + * JMSDeliveryMode=�PERSISTENT or NON_PERSISTENT�? + * JMSTimeToLive=�long�? + * JMSPriority=�0 .. 9�?> + * <property name=�NMTOKEN� type=�NMTOKEN�?>* * </headers>? */ private void parseHeaders(XMLStreamReader reader, JMSBinding jmsBinding) throws XMLStreamException { @@ -536,14 +535,14 @@ public class JMSBindingProcessor implements StAXArtifactProcessor<JMSBinding> { } /** - * <operationProperties name=”string” nativeOperation=”string”?> - * <property name=”NMTOKEN” type=”NMTOKEN”?>* - * <headers JMSType=”string”? - * JMSCorrelationId=”string”? - * JMSDeliveryMode=”PERSISTENT or NON_PERSISTENT”? - * JMSTimeToLive=”long”? - * JMSPriority=”0 .. 9”?> - * <property name=”NMTOKEN” type=”NMTOKEN”?>* + * <operationProperties name=�string� nativeOperation=�string�?> + * <property name=�NMTOKEN� type=�NMTOKEN�?>* + * <headers JMSType=�string�? + * JMSCorrelationId=�string�? + * JMSDeliveryMode=�PERSISTENT or NON_PERSISTENT�? + * JMSTimeToLive=�long�? + * JMSPriority=�0 .. 9�?> + * <property name=�NMTOKEN� type=�NMTOKEN�?>* * </headers>? * </operationProperties>* */ diff --git a/branches/sca-equinox/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/impl/JMSBindingProcessorTestCase.java b/branches/sca-equinox/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/impl/JMSBindingProcessorTestCase.java index 7fe482c4f2..82fd6a5149 100644 --- a/branches/sca-equinox/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/impl/JMSBindingProcessorTestCase.java +++ b/branches/sca-equinox/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/impl/JMSBindingProcessorTestCase.java @@ -34,9 +34,9 @@ import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint;
import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry;
import org.apache.tuscany.sca.core.UtilityExtensionPoint;
+import org.apache.tuscany.sca.monitor.DefaultMonitorFactory;
import org.apache.tuscany.sca.monitor.Monitor;
import org.apache.tuscany.sca.monitor.MonitorFactory;
-import org.apache.tuscany.sca.monitor.impl.DefaultMonitorFactoryImpl;
/**
* Tests for JMS binding xml
@@ -131,7 +131,7 @@ public class JMSBindingProcessorTestCase extends TestCase { inputFactory = XMLInputFactory.newInstance();
// Create a monitor
UtilityExtensionPoint utilities = extensionPoints.getExtensionPoint(UtilityExtensionPoint.class);
- MonitorFactory monitorFactory = new DefaultMonitorFactoryImpl();
+ MonitorFactory monitorFactory = new DefaultMonitorFactory();
if (monitorFactory != null) {
monitor = monitorFactory.createMonitor();
utilities.addUtility(monitorFactory);
|