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
This commit is contained in:
parent
b732557ce2
commit
fcef778b4f
99 changed files with 390 additions and 337 deletions
|
@ -51,12 +51,6 @@
|
|||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-monitor-logging</artifactId>
|
||||
<version>1.4-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-node2-impl</artifactId>
|
||||
|
|
|
@ -235,7 +235,6 @@
|
|||
<module>../../../modules/interface-wsdl</module>
|
||||
<module>../../../modules/interface-wsdl-xml</module>
|
||||
<module>../../../modules/monitor</module>
|
||||
<module>../../../modules/monitor-logging</module>
|
||||
<module>../../../modules/node-api</module>
|
||||
<module>../../../modules/node-impl</module>
|
||||
<module>../../../modules/node-launcher</module>
|
||||
|
|
|
@ -200,11 +200,6 @@
|
|||
<artifactId>tuscany-monitor</artifactId>
|
||||
<version>1.4-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-monitor-logging</artifactId>
|
||||
<version>1.4-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Policy models -->
|
||||
<dependency>
|
||||
|
@ -325,7 +320,6 @@
|
|||
<module>../../../modules/interface-wsdl</module>
|
||||
<module>../../../modules/interface-wsdl-xml</module>
|
||||
<module>../../../modules/monitor</module>
|
||||
<module>../../../modules/monitor-logging</module>
|
||||
<module>../../../modules/node-api</module>
|
||||
<module>../../../modules/node-impl</module>
|
||||
<module>../../../modules/node-launcher</module>
|
||||
|
|
|
@ -194,7 +194,6 @@
|
|||
<module>../../../modules/interface-wsdl</module>
|
||||
<module>../../../modules/interface-wsdl-xml</module>
|
||||
<module>../../../modules/monitor</module>
|
||||
<module>../../../modules/monitor-logging</module>
|
||||
<module>../../../modules/node-api</module>
|
||||
<module>../../../modules/node-impl</module>
|
||||
<module>../../../modules/node-launcher</module>
|
||||
|
|
|
@ -241,7 +241,6 @@
|
|||
<module>../../../modules/interface-wsdl</module>
|
||||
<module>../../../modules/interface-wsdl-xml</module>
|
||||
<module>../../../modules/monitor</module>
|
||||
<module>../../../modules/monitor-logging</module>
|
||||
<module>../../../modules/node-api</module>
|
||||
<module>../../../modules/node-impl</module>
|
||||
<module>../../../modules/node-launcher</module>
|
||||
|
|
|
@ -136,7 +136,6 @@
|
|||
<module>../../../modules/interface-wsdl</module>
|
||||
<module>../../../modules/interface-wsdl-xml</module>
|
||||
<module>../../../modules/monitor</module>
|
||||
<module>../../../modules/monitor-logging</module>
|
||||
<module>../../../modules/node-api</module>
|
||||
<module>../../../modules/node-impl</module>
|
||||
<module>../../../modules/node-launcher</module>
|
||||
|
|
|
@ -168,7 +168,6 @@
|
|||
<module>../../../modules/interface-wsdl</module>
|
||||
<module>../../../modules/interface-wsdl-xml</module>
|
||||
<module>../../../modules/monitor</module>
|
||||
<module>../../../modules/monitor-logging</module>
|
||||
<module>../../../modules/node-api</module>
|
||||
<module>../../../modules/node-impl</module>
|
||||
<module>../../../modules/node-launcher</module>
|
||||
|
|
|
@ -195,7 +195,6 @@
|
|||
<module>../../../modules/interface-wsdl</module>
|
||||
<module>../../../modules/interface-wsdl-xml</module>
|
||||
<module>../../../modules/monitor</module>
|
||||
<module>../../../modules/monitor-logging</module>
|
||||
<module>../../../modules/node-api</module>
|
||||
<module>../../../modules/node-impl</module>
|
||||
<module>../../../modules/node-launcher</module>
|
||||
|
|
|
@ -204,7 +204,6 @@
|
|||
<module>../../../modules/interface-wsdl</module>
|
||||
<module>../../../modules/interface-wsdl-xml</module>
|
||||
<module>../../../modules/monitor</module>
|
||||
<module>../../../modules/monitor-logging</module>
|
||||
<module>../../../modules/node-api</module>
|
||||
<module>../../../modules/node-impl</module>
|
||||
<module>../../../modules/node-launcher</module>
|
||||
|
|
|
@ -42,13 +42,6 @@
|
|||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-monitor-logging</artifactId>
|
||||
<version>1.4-SNAPSHOT</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-workspace-impl</artifactId>
|
||||
|
|
|
@ -42,13 +42,6 @@
|
|||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-monitor-logging</artifactId>
|
||||
<version>1.4-SNAPSHOT</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
|
|
|
@ -33,11 +33,6 @@
|
|||
<tuscany.version>${pom.version}</tuscany.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>${pom.groupId}</groupId>
|
||||
<artifactId>tuscany-monitor-logging</artifactId>
|
||||
<version>${pom.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>${pom.groupId}</groupId>
|
||||
<artifactId>tuscany-assembly</artifactId>
|
||||
|
|
|
@ -34,11 +34,6 @@
|
|||
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>${pom.groupId}</groupId>
|
||||
<artifactId>tuscany-monitor-logging</artifactId>
|
||||
<version>${pom.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>${pom.groupId}</groupId>
|
||||
<artifactId>tuscany-assembly</artifactId>
|
||||
|
|
|
@ -30,12 +30,6 @@
|
|||
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-monitor-logging</artifactId>
|
||||
<version>1.4-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-contribution-resource</artifactId>
|
||||
|
|
|
@ -55,7 +55,6 @@ import org.apache.tuscany.sca.assembly.Multiplicity;
|
|||
import org.apache.tuscany.sca.assembly.OperationsConfigurator;
|
||||
import org.apache.tuscany.sca.assembly.Reference;
|
||||
import org.apache.tuscany.sca.assembly.Service;
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.ContributionFactory;
|
||||
import org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
|
||||
|
@ -149,7 +148,7 @@ abstract class BaseAssemblyProcessor extends BaseStAXArtifactProcessor implement
|
|||
*/
|
||||
protected void warning(String message, Object model, String... messageParameters) {
|
||||
if (monitor != null){
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "assembly-xml-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "assembly-xml-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -163,7 +162,7 @@ abstract class BaseAssemblyProcessor extends BaseStAXArtifactProcessor implement
|
|||
*/
|
||||
protected void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "assembly-xml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "assembly-xml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -177,7 +176,7 @@ abstract class BaseAssemblyProcessor extends BaseStAXArtifactProcessor implement
|
|||
*/
|
||||
protected void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "assembly-xml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "assembly-xml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,9 +48,9 @@ import org.apache.tuscany.sca.core.UtilityExtensionPoint;
|
|||
import org.apache.tuscany.sca.definitions.SCADefinitions;
|
||||
import org.apache.tuscany.sca.interfacedef.InterfaceContractMapper;
|
||||
import org.apache.tuscany.sca.interfacedef.impl.InterfaceContractMapperImpl;
|
||||
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;
|
||||
import org.apache.tuscany.sca.policy.IntentAttachPoint;
|
||||
import org.apache.tuscany.sca.policy.IntentAttachPointTypeFactory;
|
||||
|
||||
|
@ -77,7 +77,7 @@ public class BuildPolicyTestCase extends TestCase {
|
|||
List<SCADefinitions> policyDefinitions = new ArrayList<SCADefinitions>();
|
||||
resolver = new DefaultModelResolver();
|
||||
|
||||
MonitorFactory monitorFactory = new DefaultMonitorFactoryImpl();
|
||||
MonitorFactory monitorFactory = new DefaultMonitorFactory();
|
||||
monitor = monitorFactory.createMonitor();
|
||||
|
||||
UtilityExtensionPoint utilities = extensionPoints.getExtensionPoint(UtilityExtensionPoint.class);
|
||||
|
|
|
@ -46,9 +46,9 @@ import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry;
|
|||
import org.apache.tuscany.sca.core.UtilityExtensionPoint;
|
||||
import org.apache.tuscany.sca.definitions.SCADefinitions;
|
||||
import org.apache.tuscany.sca.interfacedef.InterfaceContractMapper;
|
||||
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;
|
||||
import org.apache.tuscany.sca.policy.IntentAttachPointTypeFactory;
|
||||
|
||||
/**
|
||||
|
@ -73,7 +73,7 @@ public class WireTestCase extends TestCase {
|
|||
staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, inputFactory, null, null);
|
||||
resolver = new DefaultModelResolver();
|
||||
|
||||
MonitorFactory monitorFactory = new DefaultMonitorFactoryImpl();
|
||||
MonitorFactory monitorFactory = new DefaultMonitorFactory();
|
||||
monitor = monitorFactory.createMonitor();
|
||||
|
||||
ModelFactoryExtensionPoint modelFactories = extensionPoints.getExtensionPoint(ModelFactoryExtensionPoint.class);
|
||||
|
|
|
@ -49,9 +49,9 @@ import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry;
|
|||
import org.apache.tuscany.sca.core.UtilityExtensionPoint;
|
||||
import org.apache.tuscany.sca.definitions.SCADefinitions;
|
||||
import org.apache.tuscany.sca.interfacedef.InterfaceContractMapper;
|
||||
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;
|
||||
import org.apache.tuscany.sca.policy.IntentAttachPointTypeFactory;
|
||||
|
||||
/**
|
||||
|
@ -85,7 +85,7 @@ public class WriteAllTestCase extends TestCase {
|
|||
UtilityExtensionPoint utilities = extensionPoints.getExtensionPoint(UtilityExtensionPoint.class);
|
||||
InterfaceContractMapper mapper = utilities.getUtility(InterfaceContractMapper.class);
|
||||
|
||||
MonitorFactory monitorFactory = new DefaultMonitorFactoryImpl();
|
||||
MonitorFactory monitorFactory = new DefaultMonitorFactory();
|
||||
monitor = monitorFactory.createMonitor();
|
||||
|
||||
compositeBuilder = new CompositeBuilderImpl(assemblyFactory, scaBindingFactory, attachPointTypeFactory, mapper, monitor);
|
||||
|
|
|
@ -52,6 +52,7 @@ import org.apache.tuscany.sca.interfacedef.InterfaceContractMapper;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.policy.IntentAttachPoint;
|
||||
import org.apache.tuscany.sca.policy.IntentAttachPointType;
|
||||
|
||||
|
@ -312,7 +313,7 @@ public abstract class BaseConfigurationBuilderImpl {
|
|||
*/
|
||||
private void warning(String message, Object model, String... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "assembly-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "assembly-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -326,7 +327,7 @@ public abstract class BaseConfigurationBuilderImpl {
|
|||
*/
|
||||
private void error(String message, Object model, String... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "assembly-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "assembly-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,10 +22,8 @@ package org.apache.tuscany.sca.assembly.builder.impl;
|
|||
import java.net.URI;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.AssemblyFactory;
|
||||
import org.apache.tuscany.sca.assembly.Binding;
|
||||
|
@ -41,9 +39,7 @@ import org.apache.tuscany.sca.assembly.EndpointFactory;
|
|||
import org.apache.tuscany.sca.assembly.Implementation;
|
||||
import org.apache.tuscany.sca.assembly.Multiplicity;
|
||||
import org.apache.tuscany.sca.assembly.OperationsConfigurator;
|
||||
import org.apache.tuscany.sca.assembly.OptimizableBinding;
|
||||
import org.apache.tuscany.sca.assembly.Reference;
|
||||
import org.apache.tuscany.sca.assembly.SCABinding;
|
||||
import org.apache.tuscany.sca.assembly.Service;
|
||||
import org.apache.tuscany.sca.assembly.Wire;
|
||||
import org.apache.tuscany.sca.assembly.builder.DefaultEndpointBuilder;
|
||||
|
@ -212,7 +208,7 @@ class BaseWireBuilderImpl {
|
|||
*/
|
||||
private void warning(String message, Object model, String... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "assembly-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "assembly-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -227,7 +223,7 @@ class BaseWireBuilderImpl {
|
|||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = null;
|
||||
problem = new ProblemImpl(this.getClass().getName(), "assembly-validation-messages", Severity.ERROR, model, message, ex);
|
||||
problem = monitor.createProblem(this.getClass().getName(), "assembly-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ public class CompositeIncludeBuilderImpl implements CompositeBuilder {
|
|||
|
||||
private void warning(String message, Object model, String... messageParameters) {
|
||||
if (monitor != null){
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "assembly-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "assembly-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ public abstract class EndpointBuilderImpl implements EndpointBuilder {
|
|||
|
||||
private void warning(String message, Object model, String... messageParameters) {
|
||||
if (monitor != null){
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "assembly-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "assembly-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ public abstract class EndpointBuilderImpl implements EndpointBuilder {
|
|||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null){
|
||||
Problem problem = null;
|
||||
problem = new ProblemImpl(this.getClass().getName(), "assembly-validation-messages", Severity.ERROR, model, message, ex);
|
||||
problem = monitor.createProblem(this.getClass().getName(), "assembly-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ abstract class ReferenceConfigurationUtil {
|
|||
*/
|
||||
private static void warning(Monitor monitor, String message, Object model, String... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(ReferenceConfigurationUtil.class.getName(), "assembly-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(ReferenceConfigurationUtil.class.getName(), "assembly-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,9 +33,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;
|
||||
|
||||
/**
|
||||
* @version $Rev$ $Date$
|
||||
|
@ -63,7 +63,7 @@ public class AtomBindingProcessorTestCase 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);
|
||||
|
|
|
@ -23,7 +23,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.binding.ejb.EJBBinding;
|
||||
|
@ -33,10 +32,10 @@ import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
|||
import org.apache.tuscany.sca.contribution.service.ContributionReadException;
|
||||
import org.apache.tuscany.sca.contribution.service.ContributionResolveException;
|
||||
import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
|
||||
import org.apache.tuscany.sca.policy.PolicyFactory;
|
||||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.policy.PolicyFactory;
|
||||
|
||||
/**
|
||||
* A processor to read the XML that describes the EJB binding...
|
||||
|
@ -78,7 +77,7 @@ public class EJBBindingProcessor implements StAXArtifactProcessor<EJBBindingImpl
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "binding-ejb-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "binding-ejb-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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=<EFBFBD>string<EFBFBD>?
|
||||
* JMSCorrelationID=<EFBFBD>string<EFBFBD>?
|
||||
* JMSDeliveryMode=<EFBFBD>PERSISTENT or NON_PERSISTENT<EFBFBD>?
|
||||
* JMSTimeToLive=<EFBFBD>long<EFBFBD>?
|
||||
* JMSPriority=<EFBFBD>0 .. 9<EFBFBD>?>
|
||||
* <property name=<EFBFBD>NMTOKEN<EFBFBD> type=<EFBFBD>NMTOKEN<EFBFBD>?>*
|
||||
* </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=<EFBFBD>string<EFBFBD> nativeOperation=<EFBFBD>string<EFBFBD>?>
|
||||
* <property name=<EFBFBD>NMTOKEN<EFBFBD> type=<EFBFBD>NMTOKEN<EFBFBD>?>*
|
||||
* <headers JMSType=<EFBFBD>string<EFBFBD>?
|
||||
* JMSCorrelationId=<EFBFBD>string<EFBFBD>?
|
||||
* JMSDeliveryMode=<EFBFBD>PERSISTENT or NON_PERSISTENT<EFBFBD>?
|
||||
* JMSTimeToLive=<EFBFBD>long<EFBFBD>?
|
||||
* JMSPriority=<EFBFBD>0 .. 9<EFBFBD>?>
|
||||
* <property name=<EFBFBD>NMTOKEN<EFBFBD> type=<EFBFBD>NMTOKEN<EFBFBD>?>*
|
||||
* </headers>?
|
||||
* </operationProperties>*
|
||||
*/
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -22,6 +22,7 @@ package org.apache.tuscany.sca.binding.ws.wsdlgen;
|
|||
import java.util.List;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import javax.wsdl.Definition;
|
||||
import javax.wsdl.PortType;
|
||||
import javax.wsdl.WSDLException;
|
||||
|
@ -31,8 +32,6 @@ import javax.xml.namespace.QName;
|
|||
import org.apache.tuscany.sca.assembly.AbstractContract;
|
||||
import org.apache.tuscany.sca.assembly.Component;
|
||||
import org.apache.tuscany.sca.assembly.Contract;
|
||||
import org.apache.tuscany.sca.assembly.builder.BindingBuilderExtension;
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.binding.ws.WebServiceBinding;
|
||||
import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
|
@ -89,7 +88,7 @@ public class BindingWSDLGenerator {
|
|||
* @param parameters
|
||||
*/
|
||||
private static void warning(Monitor monitor, String message, WebServiceBinding wsBinding, String... messageParameters) {
|
||||
Problem problem = new ProblemImpl(BindingWSDLGenerator.class.getName(), "wsdlgen-validation-messages", Severity.WARNING, wsBinding, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(BindingWSDLGenerator.class.getName(), "wsdlgen-validation-messages", Severity.WARNING, wsBinding, message, (Object[])messageParameters);
|
||||
if (monitor != null) {
|
||||
monitor.problem(problem);
|
||||
} else {
|
||||
|
@ -104,7 +103,7 @@ public class BindingWSDLGenerator {
|
|||
* @param parameters
|
||||
*/
|
||||
private static void error(Monitor monitor, String message, WebServiceBinding wsBinding, String... messageParameters) {
|
||||
Problem problem = new ProblemImpl(BindingWSDLGenerator.class.getName(), "wsdlgen-validation-messages", Severity.ERROR, wsBinding, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(BindingWSDLGenerator.class.getName(), "wsdlgen-validation-messages", Severity.ERROR, wsBinding, message, (Object[])messageParameters);
|
||||
if (monitor != null) {
|
||||
monitor.problem(problem);
|
||||
} else {
|
||||
|
@ -119,7 +118,7 @@ public class BindingWSDLGenerator {
|
|||
* @param exception
|
||||
*/
|
||||
private static void error(Monitor monitor, String message, WebServiceBinding wsBinding, Exception ex) {
|
||||
Problem problem = new ProblemImpl(BindingWSDLGenerator.class.getName(), "wsdlgen-validation-messages", Severity.ERROR, wsBinding, message, ex);
|
||||
Problem problem = monitor.createProblem(BindingWSDLGenerator.class.getName(), "wsdlgen-validation-messages", Severity.ERROR, wsBinding, message, ex);
|
||||
if (monitor != null) {
|
||||
monitor.problem(problem);
|
||||
} else {
|
||||
|
@ -134,7 +133,7 @@ public class BindingWSDLGenerator {
|
|||
* @param exception
|
||||
*/
|
||||
private static void fatal(Monitor monitor, String message, WebServiceBinding wsBinding, String... messageParameters) {
|
||||
Problem problem = new ProblemImpl(BindingWSDLGenerator.class.getName(), "wsdlgen-validation-messages", Severity.ERROR,wsBinding, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(BindingWSDLGenerator.class.getName(), "wsdlgen-validation-messages", Severity.ERROR,wsBinding, message, (Object[])messageParameters);
|
||||
throw new WSDLGenerationException(problem.toString(), null, problem);
|
||||
}
|
||||
|
||||
|
@ -145,7 +144,7 @@ public class BindingWSDLGenerator {
|
|||
* @param exception
|
||||
*/
|
||||
private static void fatal(Monitor monitor, String message, WebServiceBinding wsBinding, Exception ex) {
|
||||
Problem problem = new ProblemImpl(BindingWSDLGenerator.class.getName(), "wsdlgen-validation-messages", Severity.ERROR, wsBinding, message, ex);
|
||||
Problem problem = monitor.createProblem(BindingWSDLGenerator.class.getName(), "wsdlgen-validation-messages", Severity.ERROR, wsBinding, message, ex);
|
||||
throw new WSDLGenerationException(problem.toString(), ex, problem);
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,6 @@ import javax.xml.namespace.QName;
|
|||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
import org.apache.tuscany.sca.databinding.DataBinding;
|
||||
import org.apache.tuscany.sca.databinding.DataBindingExtensionPoint;
|
||||
|
@ -136,7 +135,7 @@ public class Interface2WSDLGenerator {
|
|||
* @param parameters
|
||||
*/
|
||||
private void warning(String message, Interface interfaze, String... messageParameters) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "wsdlgen-validation-messages", Severity.WARNING, interfaze, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "wsdlgen-validation-messages", Severity.WARNING, interfaze, message, (Object[])messageParameters);
|
||||
if (monitor != null) {
|
||||
monitor.problem(problem);
|
||||
} else {
|
||||
|
@ -151,7 +150,7 @@ public class Interface2WSDLGenerator {
|
|||
* @param parameters
|
||||
*/
|
||||
private void fatal(String message, Interface interfaze, String... messageParameters) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "wsdlgen-validation-messages", Severity.ERROR, interfaze, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "wsdlgen-validation-messages", Severity.ERROR, interfaze, message, (Object[])messageParameters);
|
||||
throw new WSDLGenerationException(problem.toString(), null, problem);
|
||||
}
|
||||
|
||||
|
|
|
@ -20,23 +20,15 @@ package org.apache.tuscany.sca.binding.ws.wsdlgen;
|
|||
|
||||
//FIXME: trim the import list down to what's really needed
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
import java.net.URL;
|
||||
import java.security.AccessController;
|
||||
import java.security.PrivilegedAction;
|
||||
import java.security.PrivilegedActionException;
|
||||
import java.security.PrivilegedExceptionAction;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import javax.wsdl.Binding;
|
||||
import javax.wsdl.BindingOperation;
|
||||
import javax.wsdl.Definition;
|
||||
import javax.wsdl.Import;
|
||||
import javax.wsdl.Port;
|
||||
|
@ -46,36 +38,22 @@ import javax.wsdl.WSDLException;
|
|||
import javax.wsdl.extensions.ExtensibilityElement;
|
||||
import javax.wsdl.extensions.soap.SOAPAddress;
|
||||
import javax.wsdl.extensions.soap.SOAPBinding;
|
||||
import javax.wsdl.extensions.soap.SOAPOperation;
|
||||
import javax.wsdl.extensions.soap12.SOAP12Address;
|
||||
import javax.wsdl.extensions.soap12.SOAP12Binding;
|
||||
import javax.wsdl.factory.WSDLFactory;
|
||||
import javax.wsdl.xml.WSDLWriter;
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.stream.FactoryConfigurationError;
|
||||
import javax.xml.stream.XMLInputFactory;
|
||||
import javax.xml.stream.XMLStreamException;
|
||||
import javax.xml.stream.XMLStreamReader;
|
||||
import javax.xml.transform.dom.DOMSource;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.AbstractContract;
|
||||
import org.apache.tuscany.sca.assembly.Component;
|
||||
import org.apache.tuscany.sca.assembly.CompositeService;
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.binding.ws.WebServiceBinding;
|
||||
import org.apache.tuscany.sca.interfacedef.Interface;
|
||||
import org.apache.tuscany.sca.interfacedef.Operation;
|
||||
import org.apache.tuscany.sca.interfacedef.wsdl.WSDLDefinition;
|
||||
import org.apache.tuscany.sca.interfacedef.wsdl.WSDLInterface;
|
||||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.policy.PolicySet;
|
||||
import org.apache.tuscany.sca.policy.PolicySetAttachPoint;
|
||||
import org.apache.tuscany.sca.policy.security.ws.Axis2ConfigParamPolicy;
|
||||
import org.apache.tuscany.sca.policy.util.PolicyHandler;
|
||||
import org.apache.tuscany.sca.policy.util.PolicyHandlerTuple;
|
||||
import org.apache.tuscany.sca.policy.util.PolicyHandlerUtils;
|
||||
import org.w3c.dom.Element;
|
||||
import org.w3c.dom.Node;
|
||||
import org.w3c.dom.NodeList;
|
||||
|
@ -120,7 +98,7 @@ public class WSDLServiceGenerator {
|
|||
* @param parameters
|
||||
*/
|
||||
private static void warning(Monitor monitor, String message, WebServiceBinding wsBinding, String... messageParameters) {
|
||||
Problem problem = new ProblemImpl(WSDLServiceGenerator.class.getName(), "wsdlgen-validation-messages", Severity.WARNING, wsBinding, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(WSDLServiceGenerator.class.getName(), "wsdlgen-validation-messages", Severity.WARNING, wsBinding, message, (Object[])messageParameters);
|
||||
if (monitor != null) {
|
||||
monitor.problem(problem);
|
||||
} else {
|
||||
|
@ -135,7 +113,7 @@ public class WSDLServiceGenerator {
|
|||
* @param parameters
|
||||
*/
|
||||
private static void error(Monitor monitor, String message, WebServiceBinding wsBinding, String... messageParameters) {
|
||||
Problem problem = new ProblemImpl(WSDLServiceGenerator.class.getName(), "wsdlgen-validation-messages", Severity.ERROR, wsBinding, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(WSDLServiceGenerator.class.getName(), "wsdlgen-validation-messages", Severity.ERROR, wsBinding, message, (Object[])messageParameters);
|
||||
if (monitor != null) {
|
||||
monitor.problem(problem);
|
||||
} else {
|
||||
|
|
|
@ -23,6 +23,7 @@ import static javax.xml.stream.XMLStreamConstants.END_ELEMENT;
|
|||
import static javax.xml.stream.XMLStreamConstants.START_ELEMENT;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.wsdl.Binding;
|
||||
import javax.wsdl.Port;
|
||||
import javax.wsdl.PortType;
|
||||
|
@ -34,7 +35,6 @@ import javax.xml.stream.XMLStreamWriter;
|
|||
|
||||
import org.apache.tuscany.sca.assembly.ConfiguredOperation;
|
||||
import org.apache.tuscany.sca.assembly.OperationsConfigurator;
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.assembly.xml.ConfiguredOperationProcessor;
|
||||
import org.apache.tuscany.sca.assembly.xml.Constants;
|
||||
import org.apache.tuscany.sca.assembly.xml.PolicyAttachPointProcessor;
|
||||
|
@ -103,7 +103,7 @@ public class WebServiceBindingProcessor implements StAXArtifactProcessor<WebServ
|
|||
*/
|
||||
private void warning(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "binding-wsxml-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "binding-wsxml-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ public class WebServiceBindingProcessor implements StAXArtifactProcessor<WebServ
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "binding-wsxml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "binding-wsxml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,7 +48,6 @@ import javax.xml.stream.XMLInputFactory;
|
|||
import javax.xml.stream.XMLStreamConstants;
|
||||
import javax.xml.stream.XMLStreamReader;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.Contribution;
|
||||
import org.apache.tuscany.sca.contribution.service.ContributionRepository;
|
||||
import org.apache.tuscany.sca.contribution.service.util.FileHelper;
|
||||
|
@ -56,6 +55,7 @@ import org.apache.tuscany.sca.contribution.service.util.IOHelper;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* The default implementation of ContributionRepository
|
||||
|
@ -84,7 +84,7 @@ public class ContributionRepositoryImpl implements ContributionRepository {
|
|||
*/
|
||||
protected void warning(String message, Object model, String... messageParameters) {
|
||||
if (monitor != null){
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-impl-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-impl-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ public class ContributionRepositoryImpl implements ContributionRepository {
|
|||
*/
|
||||
protected void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-impl-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-impl-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ public class ContributionRepositoryImpl implements ContributionRepository {
|
|||
*/
|
||||
protected void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-impl-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-impl-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,7 +37,6 @@ import javax.xml.stream.XMLStreamException;
|
|||
|
||||
import org.apache.tuscany.sca.assembly.AssemblyFactory;
|
||||
import org.apache.tuscany.sca.assembly.Composite;
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.Artifact;
|
||||
import org.apache.tuscany.sca.contribution.Contribution;
|
||||
import org.apache.tuscany.sca.contribution.ContributionFactory;
|
||||
|
@ -62,6 +61,7 @@ import org.apache.tuscany.sca.policy.PolicySet;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* Service interface that manages artifacts contributed to a Tuscany runtime.
|
||||
|
@ -171,7 +171,7 @@ public class ContributionServiceImpl implements ContributionService {
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-impl-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-impl-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,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.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.java.JavaExport;
|
||||
import org.apache.tuscany.sca.contribution.java.JavaImportExportFactory;
|
||||
|
@ -70,7 +69,7 @@ public class JavaExportProcessor implements StAXArtifactProcessor<JavaExport> {
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-java-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-java-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,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.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.java.JavaImport;
|
||||
import org.apache.tuscany.sca.contribution.java.JavaImportExportFactory;
|
||||
|
@ -71,7 +70,7 @@ public class JavaImportProcessor implements StAXArtifactProcessor<JavaImport> {
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-java-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-java-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,11 +33,10 @@ import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtens
|
|||
import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry;
|
||||
import org.apache.tuscany.sca.core.ExtensionPointRegistry;
|
||||
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.Problem;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorFactoryImpl;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl;
|
||||
|
||||
/**
|
||||
* Test JavaExportProcessorTestCase
|
||||
|
@ -64,7 +63,7 @@ public class JavaExportProcessorTestCase 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);
|
||||
|
@ -96,7 +95,7 @@ public class JavaExportProcessorTestCase extends TestCase {
|
|||
assertTrue(true);
|
||||
}*/
|
||||
staxProcessor.read(reader);
|
||||
Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem();
|
||||
Problem problem = monitor.getLastLoggedProblem();
|
||||
assertNotNull(problem);
|
||||
assertEquals("AttributePackageMissing", problem.getMessageId());
|
||||
}
|
||||
|
|
|
@ -33,11 +33,10 @@ import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtens
|
|||
import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry;
|
||||
import org.apache.tuscany.sca.core.ExtensionPointRegistry;
|
||||
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.Problem;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorFactoryImpl;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl;
|
||||
|
||||
/**
|
||||
* Test JavaImportProcessorTestCase
|
||||
|
@ -64,7 +63,7 @@ public class JavaImportProcessorTestCase 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);
|
||||
|
@ -98,7 +97,7 @@ public class JavaImportProcessorTestCase extends TestCase {
|
|||
assertTrue(true);
|
||||
}*/
|
||||
staxProcessor.read(reader);
|
||||
Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem();
|
||||
Problem problem = monitor.getLastLoggedProblem();
|
||||
assertNotNull(problem);
|
||||
assertEquals("AttributePackageMissing", problem.getMessageId());
|
||||
}
|
||||
|
|
|
@ -27,7 +27,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.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.namespace.NamespaceExport;
|
||||
import org.apache.tuscany.sca.contribution.namespace.NamespaceImportExportFactory;
|
||||
|
@ -39,6 +38,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* Artifact processor for Namespace export
|
||||
|
@ -68,7 +68,7 @@ public class NamespaceExportProcessor implements StAXArtifactProcessor<Namespace
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-namespace-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-namespace-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,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.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.namespace.NamespaceImport;
|
||||
import org.apache.tuscany.sca.contribution.namespace.NamespaceImportExportFactory;
|
||||
|
@ -39,6 +38,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* Artifact processor for Namespace import
|
||||
|
@ -70,7 +70,7 @@ public class NamespaceImportProcessor implements StAXArtifactProcessor<Namespac
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-namespace-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-namespace-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,11 +33,10 @@ import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtens
|
|||
import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry;
|
||||
import org.apache.tuscany.sca.core.ExtensionPointRegistry;
|
||||
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.Problem;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorFactoryImpl;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl;
|
||||
|
||||
/**
|
||||
* Test NamespaceExportProcessorTestCase
|
||||
|
@ -64,7 +63,7 @@ public class NamespaceExportProcessorTestCase 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);
|
||||
|
@ -96,7 +95,7 @@ public class NamespaceExportProcessorTestCase extends TestCase {
|
|||
assertTrue(true);
|
||||
}*/
|
||||
staxProcessor.read(reader);
|
||||
Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem();
|
||||
Problem problem = monitor.getLastLoggedProblem();
|
||||
assertNotNull(problem);
|
||||
assertEquals("AttributeNameSpaceMissing", problem.getMessageId());
|
||||
}
|
||||
|
|
|
@ -32,15 +32,13 @@ import org.apache.tuscany.sca.contribution.namespace.NamespaceImport;
|
|||
import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.service.ContributionReadException;
|
||||
import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry;
|
||||
import org.apache.tuscany.sca.core.ExtensionPointRegistry;
|
||||
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.Problem;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorFactoryImpl;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl;
|
||||
|
||||
/**
|
||||
* Test NamespaceImportProcessorTestCase
|
||||
|
@ -67,7 +65,7 @@ public class NamespaceImportProcessorTestCase 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);
|
||||
|
@ -101,7 +99,7 @@ public class NamespaceImportProcessorTestCase extends TestCase {
|
|||
assertTrue(true);
|
||||
}*/
|
||||
staxProcessor.read(reader);
|
||||
Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem();
|
||||
Problem problem = monitor.getLastLoggedProblem();
|
||||
assertNotNull(problem);
|
||||
assertEquals("AttributeNameSpaceMissing", problem.getMessageId());
|
||||
}
|
||||
|
|
|
@ -27,7 +27,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.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
|
@ -39,6 +38,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* Artifact processor for Resource export
|
||||
|
@ -68,7 +68,7 @@ public class ResourceExportProcessor implements StAXArtifactProcessor<ResourceEx
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-resource-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-resource-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,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.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
|
@ -39,6 +38,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* Artifact processor for Namespace import
|
||||
|
@ -70,7 +70,7 @@ public class ResourceImportProcessor implements StAXArtifactProcessor<ResourceI
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-resource-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-resource-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,11 +34,10 @@ import org.apache.tuscany.sca.contribution.resource.ResourceExport;
|
|||
import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry;
|
||||
import org.apache.tuscany.sca.core.ExtensionPointRegistry;
|
||||
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.Problem;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorFactoryImpl;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl;
|
||||
|
||||
/**
|
||||
* Test NamespaceExportProcessorTestCase
|
||||
|
@ -65,7 +64,7 @@ public class ResourceExportProcessorTestCase 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);
|
||||
|
@ -97,7 +96,7 @@ public class ResourceExportProcessorTestCase extends TestCase {
|
|||
assertTrue(true);
|
||||
}*/
|
||||
staxProcessor.read(reader);
|
||||
Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem();
|
||||
Problem problem = monitor.getLastLoggedProblem();
|
||||
assertNotNull(problem);
|
||||
assertEquals("AttributeURIMissing", problem.getMessageId());
|
||||
}
|
||||
|
|
|
@ -35,11 +35,10 @@ import org.apache.tuscany.sca.contribution.resource.ResourceImport;
|
|||
import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry;
|
||||
import org.apache.tuscany.sca.core.ExtensionPointRegistry;
|
||||
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.Problem;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorFactoryImpl;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl;
|
||||
|
||||
/**
|
||||
* Test NamespaceImportProcessorTestCase
|
||||
|
@ -66,7 +65,7 @@ public class ResourceImportProcessorTestCase 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);
|
||||
|
@ -99,7 +98,7 @@ public class ResourceImportProcessorTestCase extends TestCase {
|
|||
assertTrue(true);
|
||||
}*/
|
||||
staxProcessor.read(reader);
|
||||
Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem();
|
||||
Problem problem = monitor.getLastLoggedProblem();
|
||||
assertNotNull(problem);
|
||||
assertEquals("AttributeURIMissing", problem.getMessageId());
|
||||
}
|
||||
|
|
|
@ -32,7 +32,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.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
|
@ -41,6 +40,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionResolveException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
import org.w3c.dom.Document;
|
||||
import org.w3c.dom.Element;
|
||||
import org.w3c.dom.NamedNodeMap;
|
||||
|
@ -288,7 +288,7 @@ public class AnyElementProcessor implements StAXArtifactProcessor<Object> {
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -302,7 +302,7 @@ public class AnyElementProcessor implements StAXArtifactProcessor<Object> {
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,6 @@ import javax.xml.stream.XMLInputFactory;
|
|||
import javax.xml.stream.XMLStreamException;
|
||||
import javax.xml.stream.XMLStreamReader;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.ContributionMetadata;
|
||||
import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
|
||||
|
@ -39,6 +38,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionResolveException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* URLArtifactProcessor that handles sca-contribution.xml files.
|
||||
|
@ -75,7 +75,7 @@ public class ContributionMetadataDocumentProcessor implements URLArtifactProcess
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-xml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-xml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,7 +30,6 @@ import javax.xml.stream.XMLStreamWriter;
|
|||
|
||||
import org.apache.tuscany.sca.assembly.AssemblyFactory;
|
||||
import org.apache.tuscany.sca.assembly.Composite;
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.ContributionFactory;
|
||||
import org.apache.tuscany.sca.contribution.ContributionMetadata;
|
||||
import org.apache.tuscany.sca.contribution.Export;
|
||||
|
@ -45,6 +44,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* Processor for contribution metadata
|
||||
|
@ -83,7 +83,7 @@ public class ContributionMetadataProcessor extends BaseStAXArtifactProcessor imp
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-xml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-xml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,11 +37,10 @@ import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtens
|
|||
import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry;
|
||||
import org.apache.tuscany.sca.core.ExtensionPointRegistry;
|
||||
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.Problem;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorFactoryImpl;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl;
|
||||
|
||||
/**
|
||||
* Test the contribution metadata processor.
|
||||
|
@ -79,7 +78,7 @@ public class ContributionMetadataProcessorTestCase extends TestCase {
|
|||
|
||||
// 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);
|
||||
|
@ -104,7 +103,7 @@ public class ContributionMetadataProcessorTestCase extends TestCase {
|
|||
assertTrue(true);
|
||||
}*/
|
||||
staxProcessor.read(reader);
|
||||
Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem();
|
||||
Problem problem = monitor.getLastLoggedProblem();
|
||||
assertNotNull(problem);
|
||||
assertEquals("AttributeCompositeMissing", problem.getMessageId());
|
||||
}
|
||||
|
|
|
@ -31,7 +31,6 @@ import javax.xml.stream.XMLStreamReader;
|
|||
import javax.xml.stream.XMLStreamWriter;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.AssemblyFactory;
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
import org.apache.tuscany.sca.contribution.service.ContributionReadException;
|
||||
|
@ -45,6 +44,7 @@ import org.apache.tuscany.sca.monitor.Monitor;
|
|||
import org.apache.tuscany.sca.monitor.MonitorFactory;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.policy.PolicyFactory;
|
||||
|
||||
/**
|
||||
|
@ -90,7 +90,7 @@ public class DefaultStAXArtifactProcessorExtensionPoint extends
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -236,7 +236,7 @@ public class DefaultStAXArtifactProcessorExtensionPoint extends
|
|||
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
import org.apache.tuscany.sca.contribution.service.ContributionReadException;
|
||||
|
@ -44,6 +43,7 @@ import org.apache.tuscany.sca.monitor.Monitor;
|
|||
import org.apache.tuscany.sca.monitor.MonitorFactory;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* The default implementation of an extension point for StAX artifact processors.
|
||||
|
@ -84,7 +84,7 @@ public class DefaultStAXAttributeProcessorExtensionPoint extends
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -227,7 +227,7 @@ public class DefaultStAXAttributeProcessorExtensionPoint extends
|
|||
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,6 @@ import java.util.Set;
|
|||
import javax.xml.stream.XMLInputFactory;
|
||||
import javax.xml.stream.XMLOutputFactory;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
import org.apache.tuscany.sca.contribution.service.ContributionReadException;
|
||||
|
@ -41,6 +40,7 @@ import org.apache.tuscany.sca.monitor.Monitor;
|
|||
import org.apache.tuscany.sca.monitor.MonitorFactory;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -82,7 +82,7 @@ public class DefaultURLArtifactProcessorExtensionPoint
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -184,7 +184,7 @@ public class DefaultURLArtifactProcessorExtensionPoint
|
|||
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,10 +44,10 @@ import javax.xml.transform.stream.StreamSource;
|
|||
import javax.xml.validation.Schema;
|
||||
import javax.xml.validation.SchemaFactory;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
import org.xml.sax.SAXException;
|
||||
import org.xml.sax.SAXParseException;
|
||||
|
||||
|
@ -87,7 +87,7 @@ public class DefaultValidatingXMLInputFactory extends ValidatingXMLInputFactory
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,13 +26,13 @@ import java.net.URI;
|
|||
import java.net.URL;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.service.ContributionException;
|
||||
import org.apache.tuscany.sca.contribution.service.TypeDescriber;
|
||||
import org.apache.tuscany.sca.contribution.service.UnsupportedPackageTypeException;
|
||||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* Implementation of an extensible package processor.
|
||||
|
@ -65,7 +65,7 @@ public class ExtensiblePackageProcessor implements PackageProcessor {
|
|||
*/
|
||||
protected void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,7 +33,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.contribution.Constants;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
import org.apache.tuscany.sca.contribution.service.ContributionReadException;
|
||||
|
@ -43,6 +42,7 @@ import org.apache.tuscany.sca.contribution.service.UnrecognizedElementException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* Implementation of an extensible StAX artifact processor.
|
||||
|
@ -91,7 +91,7 @@ public class ExtensibleStAXArtifactProcessor implements StAXArtifactProcessor<Ob
|
|||
*/
|
||||
private void warning(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ public class ExtensibleStAXArtifactProcessor implements StAXArtifactProcessor<Ob
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ public class ExtensibleStAXArtifactProcessor implements StAXArtifactProcessor<Ob
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,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.contribution.Constants;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
import org.apache.tuscany.sca.contribution.service.ContributionReadException;
|
||||
|
@ -41,6 +40,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* Implementation of an extensible StAX attribute processor.
|
||||
|
@ -91,7 +91,7 @@ public class ExtensibleStAXAttributeProcessor
|
|||
*/
|
||||
private void warning(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ public class ExtensibleStAXAttributeProcessor
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ public class ExtensibleStAXAttributeProcessor
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,6 @@ package org.apache.tuscany.sca.contribution.processor;
|
|||
import java.net.URI;
|
||||
import java.net.URL;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
import org.apache.tuscany.sca.contribution.service.ContributionReadException;
|
||||
import org.apache.tuscany.sca.contribution.service.ContributionResolveException;
|
||||
|
@ -29,6 +28,7 @@ import org.apache.tuscany.sca.contribution.service.UnrecognizedElementException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* Implementation of an extensible URL artifact processor.
|
||||
|
@ -63,7 +63,7 @@ public class ExtensibleURLArtifactProcessor
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,10 +36,10 @@ import org.xml.sax.Locator;
|
|||
import org.xml.sax.SAXException;
|
||||
import org.xml.sax.SAXParseException;
|
||||
import org.xml.sax.helpers.AttributesImpl;
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -121,7 +121,7 @@ class ValidatingXMLStreamReader extends StreamReaderDelegate implements XMLStrea
|
|||
*/
|
||||
private void warning(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ class ValidatingXMLStreamReader extends StreamReaderDelegate implements XMLStrea
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,7 +33,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.contribution.Artifact;
|
||||
import org.apache.tuscany.sca.contribution.ContributionFactory;
|
||||
import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint;
|
||||
|
@ -46,6 +45,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
import commonj.sdo.helper.HelperContext;
|
||||
import commonj.sdo.helper.XSDHelper;
|
||||
|
@ -76,7 +76,7 @@ public class ImportSDOProcessor implements StAXArtifactProcessor<ImportSDO> {
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "databinding-sdo-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "databinding-sdo-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ public class ImportSDOProcessor implements StAXArtifactProcessor<ImportSDO> {
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "databinding-sdo-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "databinding-sdo-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,7 +34,6 @@ import javax.xml.stream.XMLStreamConstants;
|
|||
import javax.xml.stream.XMLStreamException;
|
||||
import javax.xml.stream.XMLStreamReader;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor;
|
||||
|
@ -47,6 +46,7 @@ import org.apache.tuscany.sca.definitions.util.SCADefinitionsUtil;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* A SCA Definitions Document processor.
|
||||
|
@ -98,7 +98,7 @@ public class SCADefinitionsDocumentProcessor implements URLArtifactProcessor<SC
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "definitions-xml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "definitions-xml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ public class SCADefinitionsDocumentProcessor implements URLArtifactProcessor<SC
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "definitions-xml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "definitions-xml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -176,14 +176,6 @@
|
|||
<version>1.4-SNAPSHOT</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-monitor-logging</artifactId>
|
||||
<version>1.4-SNAPSHOT</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
||||
|
|
|
@ -84,13 +84,6 @@
|
|||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-monitor-logging</artifactId>
|
||||
<version>1.4-SNAPSHOT</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.easymock</groupId>
|
||||
<artifactId>easymock</artifactId>
|
||||
|
|
|
@ -61,9 +61,9 @@ import org.apache.tuscany.sca.extensibility.ServiceDeclaration;
|
|||
import org.apache.tuscany.sca.extensibility.ServiceDiscovery;
|
||||
import org.apache.tuscany.sca.interfacedef.InterfaceContractMapper;
|
||||
import org.apache.tuscany.sca.invocation.MessageFactory;
|
||||
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;
|
||||
import org.apache.tuscany.sca.policy.DefaultIntentAttachPointTypeFactory;
|
||||
import org.apache.tuscany.sca.policy.DefaultPolicyFactory;
|
||||
import org.apache.tuscany.sca.policy.Intent;
|
||||
|
@ -147,7 +147,7 @@ public class ReallySmallRuntime {
|
|||
if (monitorFactory != null){
|
||||
monitor = monitorFactory.createMonitor();
|
||||
} else {
|
||||
monitorFactory = new DefaultMonitorFactoryImpl();
|
||||
monitorFactory = new DefaultMonitorFactory();
|
||||
monitor = monitorFactory.createMonitor();
|
||||
utilities.addUtility(monitorFactory);
|
||||
//logger.fine("No MonitorFactory is found on the classpath.");
|
||||
|
|
|
@ -37,7 +37,6 @@ import javax.xml.namespace.QName;
|
|||
import javax.xml.stream.XMLInputFactory;
|
||||
import javax.xml.stream.XMLStreamReader;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor;
|
||||
|
@ -55,6 +54,7 @@ import org.apache.tuscany.sca.interfacedef.wsdl.xml.BPELPartnerLinkTypeExt;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* BPEL document processor responsible for reading a BPEL file and producing necessary model info about it
|
||||
|
@ -497,7 +497,7 @@ public class BPELDocumentProcessor extends BaseStAXArtifactProcessor implements
|
|||
*/
|
||||
private void warning(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "impl-bpel-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "impl-bpel-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -511,7 +511,7 @@ public class BPELDocumentProcessor extends BaseStAXArtifactProcessor implements
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "impl-bpel-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "impl-bpel-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -525,7 +525,7 @@ public class BPELDocumentProcessor extends BaseStAXArtifactProcessor implements
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "impl-bpel-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "impl-bpel-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,7 +37,6 @@ import org.apache.tuscany.sca.assembly.Multiplicity;
|
|||
import org.apache.tuscany.sca.assembly.Property;
|
||||
import org.apache.tuscany.sca.assembly.Reference;
|
||||
import org.apache.tuscany.sca.assembly.Service;
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.assembly.xml.Constants;
|
||||
import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor;
|
||||
|
@ -56,6 +55,7 @@ import org.apache.tuscany.sca.interfacedef.wsdl.WSDLInterfaceContract;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* Implements a StAX artifact processor for BPEL implementations.
|
||||
|
@ -510,7 +510,7 @@ public class BPELImplementationProcessor extends BaseStAXArtifactProcessor imple
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "impl-bpel-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "impl-bpel-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,11 +35,10 @@ 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.Problem;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorFactoryImpl;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl;
|
||||
|
||||
/**
|
||||
* @version $Rev$ $Date$
|
||||
|
@ -74,7 +73,7 @@ public class BPELImplementationProcessorTestCase 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);
|
||||
|
@ -104,7 +103,7 @@ public class BPELImplementationProcessorTestCase extends TestCase {
|
|||
public void testLoadInvalidComposite() throws Exception {
|
||||
XMLStreamReader reader = inputFactory.createXMLStreamReader(new StringReader(COMPOSITE_INVALID));
|
||||
staxProcessor.read(reader);
|
||||
Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem();
|
||||
Problem problem = monitor.getLastLoggedProblem();
|
||||
assertNotNull(problem);
|
||||
assertEquals("AttributeProcessMissing", problem.getMessageId());
|
||||
}
|
||||
|
|
|
@ -27,7 +27,6 @@ import javax.xml.stream.XMLStreamWriter;
|
|||
|
||||
import org.apache.tuscany.sca.assembly.AssemblyFactory;
|
||||
import org.apache.tuscany.sca.assembly.ComponentType;
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.assembly.xml.Constants;
|
||||
import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor;
|
||||
|
@ -41,6 +40,7 @@ import org.apache.tuscany.sca.implementation.ejb.EJBImplementationFactory;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -70,7 +70,7 @@ public class EJBImplementationProcessor extends BaseStAXArtifactProcessor implem
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "impl-ejb-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "impl-ejb-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,7 +40,6 @@ import org.apache.tuscany.sca.assembly.OperationsConfigurator;
|
|||
import org.apache.tuscany.sca.assembly.Property;
|
||||
import org.apache.tuscany.sca.assembly.Reference;
|
||||
import org.apache.tuscany.sca.assembly.Service;
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.assembly.xml.ConfiguredOperationProcessor;
|
||||
import org.apache.tuscany.sca.assembly.xml.Constants;
|
||||
import org.apache.tuscany.sca.assembly.xml.PolicyAttachPointProcessor;
|
||||
|
@ -61,6 +60,7 @@ import org.apache.tuscany.sca.interfacedef.java.JavaInterface;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.policy.IntentAttachPointTypeFactory;
|
||||
import org.apache.tuscany.sca.policy.PolicyFactory;
|
||||
|
||||
|
@ -98,7 +98,7 @@ public class JavaImplementationProcessor implements StAXArtifactProcessor<JavaIm
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "impl-javaxml-validation-messages", Severity.ERROR, model, message,(Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "impl-javaxml-validation-messages", Severity.ERROR, model, message,(Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ public class JavaImplementationProcessor implements StAXArtifactProcessor<JavaIm
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "impl-javaxml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "impl-javaxml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,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.contribution.Artifact;
|
||||
import org.apache.tuscany.sca.contribution.ContributionFactory;
|
||||
|
@ -43,6 +42,7 @@ import org.apache.tuscany.sca.implementation.resource.ResourceImplementationFact
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -72,7 +72,7 @@ public class ResourceImplementationProcessor implements StAXArtifactProcessor<Re
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "impl-resource-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "impl-resource-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ public class ResourceImplementationProcessor implements StAXArtifactProcessor<Re
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "impl-resource-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "impl-resource-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,7 +30,6 @@ import javax.xml.stream.XMLStreamWriter;
|
|||
|
||||
import org.apache.tuscany.sca.assembly.AssemblyFactory;
|
||||
import org.apache.tuscany.sca.assembly.ComponentType;
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.assembly.xml.Constants;
|
||||
import org.apache.tuscany.sca.contribution.Artifact;
|
||||
import org.apache.tuscany.sca.contribution.ContributionFactory;
|
||||
|
@ -43,6 +42,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* ScriptImplementationProcessor
|
||||
|
@ -158,7 +158,7 @@ public class ScriptImplementationProcessor implements StAXArtifactProcessor<Scri
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "impl-widget-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "impl-widget-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,6 @@ import javax.xml.stream.XMLStreamWriter;
|
|||
|
||||
import org.apache.tuscany.sca.assembly.AssemblyFactory;
|
||||
import org.apache.tuscany.sca.assembly.ComponentType;
|
||||
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;
|
||||
|
@ -43,6 +42,7 @@ import org.apache.tuscany.sca.interfacedef.java.JavaInterfaceFactory;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.policy.PolicyFactory;
|
||||
|
||||
/**
|
||||
|
@ -83,7 +83,7 @@ public class SpringImplementationProcessor implements StAXArtifactProcessor<Spri
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "impl-spring-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "impl-spring-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ public class SpringImplementationProcessor implements StAXArtifactProcessor<Spri
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "impl-spring-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "impl-spring-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,6 @@ import javax.xml.stream.XMLStreamReader;
|
|||
import javax.xml.stream.XMLStreamWriter;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.AssemblyFactory;
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.assembly.xml.Constants;
|
||||
import org.apache.tuscany.sca.contribution.Artifact;
|
||||
import org.apache.tuscany.sca.contribution.ContributionFactory;
|
||||
|
@ -42,6 +41,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -73,7 +73,7 @@ public class WidgetImplementationProcessor implements StAXArtifactProcessor<Widg
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "impl-widget-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "impl-widget-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ public class WidgetImplementationProcessor implements StAXArtifactProcessor<Widg
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "impl-widget-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "impl-widget-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,6 @@ import javax.xml.stream.XMLStreamReader;
|
|||
import javax.xml.stream.XMLStreamWriter;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.AssemblyFactory;
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.assembly.xml.Constants;
|
||||
import org.apache.tuscany.sca.contribution.Artifact;
|
||||
import org.apache.tuscany.sca.contribution.ContributionFactory;
|
||||
|
@ -42,6 +41,7 @@ import org.apache.tuscany.sca.interfacedef.java.JavaInterfaceFactory;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
* Processor for the XQuery implementation type artifact
|
||||
|
@ -75,7 +75,7 @@ public class XQueryImplementationProcessor implements StAXArtifactProcessor<XQue
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "impl-xquery-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "impl-xquery-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,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.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
|
||||
|
@ -42,6 +41,7 @@ import org.apache.tuscany.sca.interfacedef.java.JavaInterfaceFactory;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -66,7 +66,7 @@ public class JavaInterfaceProcessor implements StAXArtifactProcessor<JavaInterfa
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "interface-javaxml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "interface-javaxml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ public class JavaInterfaceProcessor implements StAXArtifactProcessor<JavaInterfa
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "interface-javaxml-validation-messages", Severity.ERROR, model, message,(Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "interface-javaxml-validation-messages", Severity.ERROR, model, message,(Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,7 +33,6 @@ import javax.xml.stream.XMLStreamConstants;
|
|||
import javax.xml.stream.XMLStreamException;
|
||||
import javax.xml.stream.XMLStreamReader;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
|
@ -44,6 +43,7 @@ import org.apache.tuscany.sca.interfacedef.wsdl.WSDLFactory;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.xsd.XSDefinition;
|
||||
import org.apache.tuscany.sca.xsd.XSDFactory;
|
||||
|
||||
|
@ -79,7 +79,7 @@ public class WSDLDocumentProcessor implements URLArtifactProcessor<WSDLDefinitio
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "interface-wsdlxml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "interface-wsdlxml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,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.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
|
||||
|
@ -44,6 +43,7 @@ import org.apache.tuscany.sca.interfacedef.wsdl.WSDLObject;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -68,7 +68,7 @@ public class WSDLInterfaceProcessor implements StAXArtifactProcessor<WSDLInterfa
|
|||
*/
|
||||
private void warning(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "interface-wsdlxml-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "interface-wsdlxml-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ public class WSDLInterfaceProcessor implements StAXArtifactProcessor<WSDLInterfa
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "interface-wsdlxml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "interface-wsdlxml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ public class WSDLInterfaceProcessor implements StAXArtifactProcessor<WSDLInterfa
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "interface-wsdlxml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "interface-wsdlxml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
|
||||
package org.apache.tuscany.sca.monitor;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.monitor.logging.impl.MonitorFactoryImpl;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
|
@ -53,7 +53,7 @@ public class MonitorTestCase {
|
|||
|
||||
Problem problem = null;
|
||||
|
||||
problem = new ProblemImpl(this.getClass().getName(),
|
||||
problem = monitor.createProblem(this.getClass().getName(),
|
||||
"tuscany-monitor-test-messages",
|
||||
Severity.WARNING,
|
||||
dummyModelObject,
|
||||
|
@ -62,7 +62,7 @@ public class MonitorTestCase {
|
|||
|
||||
String param = "Some Parameter";
|
||||
|
||||
problem = new ProblemImpl(this.getClass().getName(),
|
||||
problem = monitor.createProblem(this.getClass().getName(),
|
||||
"tuscany-monitor-test-messages",
|
||||
Severity.WARNING,
|
||||
dummyModelObject,
|
||||
|
@ -70,7 +70,7 @@ public class MonitorTestCase {
|
|||
param);
|
||||
monitor.problem(problem);
|
||||
|
||||
problem = new ProblemImpl(this.getClass().getName(),
|
||||
problem = monitor.createProblem(this.getClass().getName(),
|
||||
"tuscany-monitor-test-messages",
|
||||
Severity.WARNING,
|
||||
dummyModelObject,
|
||||
|
@ -82,7 +82,7 @@ public class MonitorTestCase {
|
|||
|
||||
Exception ex = new IllegalStateException("TEST_MESSAGE");
|
||||
|
||||
problem = new ProblemImpl(this.getClass().getName(),
|
||||
problem = monitor.createProblem(this.getClass().getName(),
|
||||
"tuscany-monitor-test-messages",
|
||||
Severity.ERROR,
|
||||
dummyModelObject,
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
<Bundle-Version>${tuscany.version}</Bundle-Version>
|
||||
<Bundle-SymbolicName>org.apache.tuscany.sca.monitor</Bundle-SymbolicName>
|
||||
<Bundle-Description>${pom.name}</Bundle-Description>
|
||||
<Export-Package>org.apache.tuscany.sca.monitor*</Export-Package>
|
||||
<Export-Package>org.apache.tuscany.sca.monitor</Export-Package>
|
||||
</instructions>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
|
|
@ -17,10 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.apache.tuscany.sca.monitor.impl;
|
||||
package org.apache.tuscany.sca.monitor;
|
||||
|
||||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.MonitorFactory;
|
||||
import org.apache.tuscany.sca.monitor.impl.MonitorImpl;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -28,14 +27,15 @@ import org.apache.tuscany.sca.monitor.MonitorFactory;
|
|||
*
|
||||
* @version $Rev$ $Date$
|
||||
*/
|
||||
public class DefaultMonitorFactoryImpl implements MonitorFactory {
|
||||
public class DefaultMonitorFactory implements MonitorFactory {
|
||||
|
||||
private Monitor monitor = null;
|
||||
|
||||
public Monitor createMonitor() {
|
||||
if (monitor == null){
|
||||
monitor = new DefaultMonitorImpl();
|
||||
if (monitor == null) {
|
||||
monitor = new MonitorImpl();
|
||||
}
|
||||
return monitor ;
|
||||
}
|
||||
|
||||
}
|
|
@ -21,6 +21,8 @@ package org.apache.tuscany.sca.monitor;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
|
||||
/**
|
||||
* A monitor for the watching for validation problems
|
||||
*
|
||||
|
@ -41,4 +43,37 @@ public interface Monitor {
|
|||
*/
|
||||
List<Problem> getProblems();
|
||||
|
||||
/**
|
||||
* Returns the last logged problem.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Problem getLastLoggedProblem();
|
||||
|
||||
/**
|
||||
* Create a new problem.
|
||||
*
|
||||
* @param sourceClassName the class name reporting the problem
|
||||
* @param bundleName the name of the message bundle to use
|
||||
* @param severity the severity of the problem
|
||||
* @param problemObject the model object for which the problem is being reported
|
||||
* @param messageId the id of the problem message
|
||||
* @param cause the exception which caused the problem
|
||||
* @return
|
||||
*/
|
||||
Problem createProblem(String sourceClassName, String bundleName, Severity severity, Object problemObject, String messageId, Exception cause);
|
||||
|
||||
/**
|
||||
* Create a new problem.
|
||||
*
|
||||
* @param sourceClassName the class name reporting the problem
|
||||
* @param bundleName the name of the message bundle to use
|
||||
* @param severity the severity of the problem
|
||||
* @param problemObject the model object for which the problem is being reported
|
||||
* @param messageId the id of the problem message
|
||||
* @param messageParams the parameters of the problem message
|
||||
* @return
|
||||
*/
|
||||
Problem createProblem(String sourceClassName, String bundleName, Severity severity, Object problemObject, String messageId, Object... messageParams );
|
||||
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
*/
|
||||
package org.apache.tuscany.sca.monitor;
|
||||
|
||||
|
||||
/**
|
||||
* A factory for validation monitors
|
||||
*
|
||||
|
@ -26,7 +27,7 @@ package org.apache.tuscany.sca.monitor;
|
|||
public interface MonitorFactory {
|
||||
|
||||
/**
|
||||
* Create a new monitor
|
||||
* Create a new monitor.
|
||||
*
|
||||
* @return a new monitor
|
||||
*/
|
||||
|
|
|
@ -20,11 +20,10 @@
|
|||
package org.apache.tuscany.sca.monitor.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
|
@ -34,8 +33,8 @@ import org.apache.tuscany.sca.monitor.Problem.Severity;
|
|||
*
|
||||
* @version $Rev$ $Date$
|
||||
*/
|
||||
public class DefaultMonitorImpl implements Monitor {
|
||||
private static final Logger logger = Logger.getLogger(DefaultMonitorImpl.class.getName());
|
||||
public class MonitorImpl implements Monitor {
|
||||
private static final Logger logger = Logger.getLogger(MonitorImpl.class.getName());
|
||||
|
||||
// Cache all the problem reported to monitor for further analysis
|
||||
private List<Problem> problemCache = new ArrayList<Problem>();
|
||||
|
@ -77,26 +76,17 @@ public class DefaultMonitorImpl implements Monitor {
|
|||
}
|
||||
|
||||
public Problem getLastLoggedProblem(){
|
||||
if (problemCache.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
return problemCache.get(problemCache.size() - 1);
|
||||
}
|
||||
|
||||
public boolean isMessageLogged(String messageId) {
|
||||
for (Problem problem : problemCache){
|
||||
if (problem.getMessageId().equals(messageId)){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
public Problem createProblem(String sourceClassName, String bundleName, Severity severity, Object problemObject, String messageId, Exception cause) {
|
||||
return new ProblemImpl(sourceClassName, bundleName, severity, problemObject, messageId, cause);
|
||||
}
|
||||
|
||||
public Problem getProblem(String messageId) {
|
||||
for (Problem problem : problemCache){
|
||||
if (problem.getMessageId().equals(messageId)){
|
||||
return problem;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
public Problem createProblem(String sourceClassName, String bundleName, Severity severity, Object problemObject, String messageId, Object... messageParams) {
|
||||
return new ProblemImpl(sourceClassName, bundleName, severity, problemObject, messageId, messageParams);
|
||||
}
|
||||
}
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.apache.tuscany.sca.assembly.builder.impl;
|
||||
package org.apache.tuscany.sca.monitor.impl;
|
||||
|
||||
import java.util.logging.Formatter;
|
||||
import java.util.logging.Level;
|
|
@ -0,0 +1,92 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.apache.tuscany.sca.monitor;
|
||||
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* Loads a monitor and adds some problems to it.
|
||||
*
|
||||
* @version $Rev$ $Date$
|
||||
*/
|
||||
public class MonitorTestCase {
|
||||
|
||||
private static MonitorFactory monitorFactory;
|
||||
|
||||
@BeforeClass
|
||||
public static void init() throws Exception {
|
||||
monitorFactory = new DefaultMonitorFactory();
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void destroy() throws Exception {
|
||||
monitorFactory = null;
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCreateProblem() throws Exception {
|
||||
String dummyModelObject = "DUMMY MODEL OBJECT";
|
||||
|
||||
Monitor monitor = monitorFactory.createMonitor();
|
||||
|
||||
Problem problem = null;
|
||||
|
||||
problem = monitor.createProblem(this.getClass().getName(),
|
||||
"tuscany-monitor-test-messages",
|
||||
Severity.WARNING,
|
||||
dummyModelObject,
|
||||
"MESSAGE1" );
|
||||
monitor.problem(problem);
|
||||
|
||||
String param = "Some Parameter";
|
||||
|
||||
problem = monitor.createProblem(this.getClass().getName(),
|
||||
"tuscany-monitor-test-messages",
|
||||
Severity.WARNING,
|
||||
dummyModelObject,
|
||||
"MESSAGE2",
|
||||
param);
|
||||
monitor.problem(problem);
|
||||
|
||||
problem = monitor.createProblem(this.getClass().getName(),
|
||||
"tuscany-monitor-test-messages",
|
||||
Severity.WARNING,
|
||||
dummyModelObject,
|
||||
"MESSAGE3",
|
||||
8,
|
||||
9,
|
||||
4);
|
||||
monitor.problem(problem);
|
||||
|
||||
Exception ex = new IllegalStateException("TEST_MESSAGE");
|
||||
|
||||
problem = monitor.createProblem(this.getClass().getName(),
|
||||
"tuscany-monitor-test-messages",
|
||||
Severity.ERROR,
|
||||
dummyModelObject,
|
||||
"MESSAGE4",
|
||||
ex);
|
||||
monitor.problem(problem);
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
#
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
#
|
||||
MESSAGE1 = This is a test message with no params
|
||||
MESSAGE2 = This is a test message with a string param {0}
|
||||
MESSAGE3 = This is a test message with numbers {0}, {1}, {2}
|
||||
MESSAGE4 = This is a test message with exception
|
|
@ -0,0 +1,24 @@
|
|||
#
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
#
|
||||
MESSAGE1 = This is a test message with no params
|
||||
MESSAGE2 = This is a test message with a string param {0}
|
||||
MESSAGE3 = This is a test message with numbers {0}, {1}, {2}
|
||||
MESSAGE4 = This is a test message with exception
|
|
@ -61,9 +61,9 @@ import org.apache.tuscany.sca.extensibility.ServiceDeclaration;
|
|||
import org.apache.tuscany.sca.extensibility.ServiceDiscovery;
|
||||
import org.apache.tuscany.sca.interfacedef.InterfaceContractMapper;
|
||||
import org.apache.tuscany.sca.invocation.MessageFactory;
|
||||
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;
|
||||
import org.apache.tuscany.sca.policy.DefaultIntentAttachPointTypeFactory;
|
||||
import org.apache.tuscany.sca.policy.DefaultPolicyFactory;
|
||||
import org.apache.tuscany.sca.policy.Intent;
|
||||
|
@ -147,7 +147,7 @@ public class RuntimeBootStrapper {
|
|||
if (monitorFactory != null) {
|
||||
monitor = monitorFactory.createMonitor();
|
||||
} else {
|
||||
monitorFactory = new DefaultMonitorFactoryImpl();
|
||||
monitorFactory = new DefaultMonitorFactory();
|
||||
monitor = monitorFactory.createMonitor();
|
||||
utilities.addUtility(monitorFactory);
|
||||
//logger.fine("No MonitorFactory is found on the classpath.");
|
||||
|
|
|
@ -28,7 +28,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.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
|
@ -38,6 +37,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -64,7 +64,7 @@ public class AuthorizationPolicyProcessor implements StAXArtifactProcessor<Autho
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "policy-security-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "policy-security-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,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.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
|
@ -36,6 +35,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -62,7 +62,7 @@ public class SecurityIdentityPolicyProcessor implements StAXArtifactProcessor<Se
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "policy-security-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "policy-security-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,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.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
|
||||
|
@ -38,6 +37,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -69,7 +69,7 @@ public class JaasAuthenticationPolicyProcessor implements StAXArtifactProcessor<
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "policy-security-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "policy-security-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,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.contribution.processor.BaseStAXArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
|
@ -38,6 +37,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.policy.Intent;
|
||||
import org.apache.tuscany.sca.policy.IntentAttachPointType;
|
||||
import org.apache.tuscany.sca.policy.IntentAttachPointTypeFactory;
|
||||
|
@ -77,7 +77,7 @@ abstract class IntentAttachPointTypeProcessor extends BaseStAXArtifactProcessor
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "policy-xml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "policy-xml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,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.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
|
||||
|
@ -42,6 +41,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.policy.Intent;
|
||||
import org.apache.tuscany.sca.policy.PolicyFactory;
|
||||
import org.apache.tuscany.sca.policy.ProfileIntent;
|
||||
|
@ -76,7 +76,7 @@ abstract class PolicyIntentProcessor<T extends Intent> extends BaseStAXArtifactP
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "policy-xml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "policy-xml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,7 +36,6 @@ import javax.xml.xpath.XPath;
|
|||
import javax.xml.xpath.XPathExpressionException;
|
||||
import javax.xml.xpath.XPathFactory;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
|
||||
|
@ -47,6 +46,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.policy.Intent;
|
||||
import org.apache.tuscany.sca.policy.PolicyFactory;
|
||||
import org.apache.tuscany.sca.policy.PolicySet;
|
||||
|
@ -89,7 +89,7 @@ public class PolicySetProcessor extends BaseStAXArtifactProcessor implements StA
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "policy-xml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "policy-xml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ public class PolicySetProcessor extends BaseStAXArtifactProcessor implements StA
|
|||
*/
|
||||
private void error(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "policy-xml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "policy-xml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,9 +41,9 @@ import org.apache.tuscany.sca.contribution.resolver.DefaultModelResolver;
|
|||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
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.MonitorFactory;
|
||||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.impl.DefaultMonitorFactoryImpl;
|
||||
import org.apache.tuscany.sca.policy.Intent;
|
||||
import org.apache.tuscany.sca.policy.IntentAttachPointType;
|
||||
import org.apache.tuscany.sca.policy.PolicySet;
|
||||
|
@ -92,7 +92,7 @@ public class ReadDocumentTestCase extends TestCase {
|
|||
XMLInputFactory 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);
|
||||
|
|
|
@ -141,7 +141,6 @@
|
|||
<module>implementation-widget-runtime</module>
|
||||
<module>implementation-xquery</module>
|
||||
<module>monitor</module>
|
||||
<module>monitor-logging</module>
|
||||
<module>node-api</module>
|
||||
<module>node-impl</module>
|
||||
<module>node-launcher</module>
|
||||
|
|
|
@ -26,7 +26,6 @@ import java.util.List;
|
|||
import java.util.Set;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.Contribution;
|
||||
import org.apache.tuscany.sca.contribution.DefaultImport;
|
||||
import org.apache.tuscany.sca.contribution.Export;
|
||||
|
@ -35,6 +34,7 @@ import org.apache.tuscany.sca.contribution.resolver.DefaultImportModelResolver;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.workspace.Workspace;
|
||||
import org.apache.tuscany.sca.workspace.builder.ContributionDependencyBuilder;
|
||||
|
||||
|
@ -137,7 +137,7 @@ public class ContributionDependencyBuilderImpl implements ContributionDependency
|
|||
*/
|
||||
private void warning(String message, Object model, Object... messageParameters) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(getClass().getName(), "workspace-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
Problem problem = monitor.createProblem(getClass().getName(), "workspace-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,6 @@ import javax.xml.stream.XMLInputFactory;
|
|||
import javax.xml.stream.XMLStreamException;
|
||||
import javax.xml.stream.XMLStreamReader;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
|
@ -38,6 +37,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionResolveException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.workspace.Workspace;
|
||||
|
||||
/**
|
||||
|
@ -73,7 +73,7 @@ public class WorkspaceDocumentProcessor implements URLArtifactProcessor<Workspac
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "workspace-xml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "workspace-xml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,7 +24,6 @@ import java.net.URL;
|
|||
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
import org.apache.tuscany.sca.assembly.builder.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor;
|
||||
import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
|
||||
|
@ -33,6 +32,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionResolveException;
|
|||
import org.apache.tuscany.sca.monitor.Monitor;
|
||||
import org.apache.tuscany.sca.monitor.Problem;
|
||||
import org.apache.tuscany.sca.monitor.Problem.Severity;
|
||||
import org.apache.tuscany.sca.monitor.impl.ProblemImpl;
|
||||
import org.apache.tuscany.sca.xsd.XSDFactory;
|
||||
import org.apache.tuscany.sca.xsd.XSDefinition;
|
||||
|
||||
|
@ -60,7 +60,7 @@ public class XSDDocumentProcessor implements URLArtifactProcessor<XSDefinition>
|
|||
*/
|
||||
private void error(String message, Object model, Exception ex) {
|
||||
if (monitor != null) {
|
||||
Problem problem = new ProblemImpl(this.getClass().getName(), "xsd-xml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
Problem problem = monitor.createProblem(this.getClass().getName(), "xsd-xml-validation-messages", Severity.ERROR, model, message, ex);
|
||||
monitor.problem(problem);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,13 +108,6 @@
|
|||
<version>1.4-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-monitor-logging</artifactId>
|
||||
<version>1.4-SNAPSHOT</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>xerces</groupId>
|
||||
<artifactId>xercesImpl</artifactId>
|
||||
|
|
Loading…
Reference in a new issue