Some refactoring, moved the factory implementation to the impl package. Moved the XML processors to the XML package. Removed unused exception class.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@686585 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9548ff6b10
commit
1390d26e06
9 changed files with 15 additions and 67 deletions
java/sca/modules/implementation-bpel/src/main
java/org/apache/tuscany/sca/implementation/bpel
impl
BPELFactoryImpl.javaBPELImplementationImpl.javaBPELProcessDefinitionImpl.javaBPELProcessException.java
xml
resources/META-INF/services
|
@ -17,20 +17,21 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.apache.tuscany.sca.implementation.bpel;
|
||||
package org.apache.tuscany.sca.implementation.bpel.impl;
|
||||
|
||||
import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint;
|
||||
import org.apache.tuscany.sca.implementation.bpel.impl.BPELImplementationImpl;
|
||||
import org.apache.tuscany.sca.implementation.bpel.impl.BPELProcessDefinitionImpl;
|
||||
import org.apache.tuscany.sca.implementation.bpel.BPELFactory;
|
||||
import org.apache.tuscany.sca.implementation.bpel.BPELImplementation;
|
||||
import org.apache.tuscany.sca.implementation.bpel.BPELProcessDefinition;
|
||||
|
||||
/**
|
||||
* A default factory for the BPEL implementation model.
|
||||
* A factory for the BPEL implementation model.
|
||||
*
|
||||
* @version $Rev$ $Date$
|
||||
*/
|
||||
public class DefaultBPELFactory implements BPELFactory {
|
||||
public class BPELFactoryImpl implements BPELFactory {
|
||||
|
||||
public DefaultBPELFactory(ModelFactoryExtensionPoint modelFactories) {
|
||||
public BPELFactoryImpl(ModelFactoryExtensionPoint modelFactories) {
|
||||
}
|
||||
|
||||
public BPELImplementation createBPELImplementation() {
|
|
@ -37,18 +37,12 @@ import org.apache.tuscany.sca.implementation.bpel.BPELProcessDefinition;
|
|||
*
|
||||
* @version $Rev$ $Date$
|
||||
*/
|
||||
public class BPELImplementationImpl extends ImplementationImpl implements BPELImplementation {
|
||||
class BPELImplementationImpl extends ImplementationImpl implements BPELImplementation {
|
||||
|
||||
private QName processName;
|
||||
private BPELProcessDefinition processDefinition;
|
||||
private ComponentType componentType;
|
||||
|
||||
/**
|
||||
* Constructs a new BPEL implementation.
|
||||
*/
|
||||
public BPELImplementationImpl() {
|
||||
}
|
||||
|
||||
public QName getProcess() {
|
||||
return processName;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ import org.apache.tuscany.sca.interfacedef.wsdl.WSDLInterface;
|
|||
*
|
||||
* @version $Rev$ $Date$
|
||||
*/
|
||||
public class BPELProcessDefinitionImpl implements BPELProcessDefinition {
|
||||
class BPELProcessDefinitionImpl implements BPELProcessDefinition {
|
||||
private QName name;
|
||||
private URI uri;
|
||||
private URL location;
|
||||
|
|
|
@ -1,42 +0,0 @@
|
|||
/*
|
||||
* 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.implementation.bpel.impl;
|
||||
|
||||
/**
|
||||
* Thrown when a process can't be compiled properly or when its descriptors
|
||||
* are invalid.
|
||||
*
|
||||
* @version $Rev$ $Date$
|
||||
*/
|
||||
public class BPELProcessException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1047893235216756186L;
|
||||
|
||||
public BPELProcessException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public BPELProcessException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public BPELProcessException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
}
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.apache.tuscany.sca.implementation.bpel.impl;
|
||||
package org.apache.tuscany.sca.implementation.bpel.xml;
|
||||
|
||||
import static javax.xml.stream.XMLStreamConstants.END_ELEMENT;
|
||||
import static javax.xml.stream.XMLStreamConstants.START_ELEMENT;
|
||||
|
@ -46,9 +46,6 @@ import org.apache.tuscany.sca.contribution.service.ContributionReadException;
|
|||
import org.apache.tuscany.sca.contribution.service.ContributionResolveException;
|
||||
import org.apache.tuscany.sca.implementation.bpel.BPELFactory;
|
||||
import org.apache.tuscany.sca.implementation.bpel.BPELProcessDefinition;
|
||||
import org.apache.tuscany.sca.implementation.bpel.xml.BPELImportElement;
|
||||
import org.apache.tuscany.sca.implementation.bpel.xml.BPELPartnerLinkElement;
|
||||
import org.apache.tuscany.sca.implementation.bpel.xml.BPELPartnerLinkTypeElement;
|
||||
import org.apache.tuscany.sca.interfacedef.InvalidInterfaceException;
|
||||
import org.apache.tuscany.sca.interfacedef.wsdl.WSDLDefinition;
|
||||
import org.apache.tuscany.sca.interfacedef.wsdl.WSDLFactory;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.tuscany.sca.implementation.bpel.impl;
|
||||
package org.apache.tuscany.sca.implementation.bpel.xml;
|
||||
|
||||
import static javax.xml.stream.XMLStreamConstants.END_ELEMENT;
|
||||
|
||||
|
@ -50,8 +50,6 @@ import org.apache.tuscany.sca.databinding.xml.DOMDataBinding;
|
|||
import org.apache.tuscany.sca.implementation.bpel.BPELFactory;
|
||||
import org.apache.tuscany.sca.implementation.bpel.BPELImplementation;
|
||||
import org.apache.tuscany.sca.implementation.bpel.BPELProcessDefinition;
|
||||
import org.apache.tuscany.sca.implementation.bpel.DefaultBPELFactory;
|
||||
import org.apache.tuscany.sca.implementation.bpel.xml.BPELPartnerLinkElement;
|
||||
import org.apache.tuscany.sca.interfacedef.wsdl.WSDLFactory;
|
||||
import org.apache.tuscany.sca.interfacedef.wsdl.WSDLInterface;
|
||||
import org.apache.tuscany.sca.interfacedef.wsdl.WSDLInterfaceContract;
|
||||
|
@ -82,7 +80,7 @@ public class BPELImplementationProcessor extends BaseStAXArtifactProcessor imple
|
|||
public BPELImplementationProcessor(ModelFactoryExtensionPoint modelFactories, Monitor monitor) {
|
||||
this.assemblyFactory = modelFactories.getFactory(AssemblyFactory.class);
|
||||
this.wsdlFactory = modelFactories.getFactory(WSDLFactory.class);
|
||||
this.bpelFactory = new DefaultBPELFactory(modelFactories);
|
||||
this.bpelFactory = modelFactories.getFactory(BPELFactory.class);
|
||||
this.monitor = monitor;
|
||||
}
|
||||
|
|
@ -16,4 +16,4 @@
|
|||
# under the License.
|
||||
|
||||
# Implementation class for the artifact processor extension
|
||||
org.apache.tuscany.sca.implementation.bpel.impl.BPELImplementationProcessor;qname=http://www.osoa.org/xmlns/sca/1.0#implementation.bpel,model=org.apache.tuscany.sca.implementation.bpel.BPELImplementation
|
||||
org.apache.tuscany.sca.implementation.bpel.xml.BPELImplementationProcessor;qname=http://www.osoa.org/xmlns/sca/1.0#implementation.bpel,model=org.apache.tuscany.sca.implementation.bpel.BPELImplementation
|
|
@ -16,4 +16,4 @@
|
|||
# under the License.
|
||||
|
||||
# Implementation class for the artifact processor extension
|
||||
org.apache.tuscany.sca.implementation.bpel.impl.BPELDocumentProcessor;type=.bpel,model=org.apache.tuscany.sca.implementation.bpel.BPELProcessDefinition
|
||||
org.apache.tuscany.sca.implementation.bpel.xml.BPELDocumentProcessor;type=.bpel,model=org.apache.tuscany.sca.implementation.bpel.BPELProcessDefinition
|
|
@ -15,4 +15,4 @@
|
|||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
org.apache.tuscany.sca.implementation.bpel.DefaultBPELFactory
|
||||
org.apache.tuscany.sca.implementation.bpel.impl.BPELFactoryImpl
|
||||
|
|
Loading…
Add table
Reference in a new issue