summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to 'java')
-rw-r--r--java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/JobDataBinding.java11
-rw-r--r--java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/JobDataMap.java3
-rw-r--r--java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/JobExceptionHandler.java42
-rw-r--r--java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/OMElement2Job.java6
4 files changed, 2 insertions, 60 deletions
diff --git a/java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/JobDataBinding.java b/java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/JobDataBinding.java
index 50b6675fa4..0acea89ebf 100644
--- a/java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/JobDataBinding.java
+++ b/java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/JobDataBinding.java
@@ -19,7 +19,6 @@
package org.apache.tuscany.sca.databinding.job;
-import org.apache.tuscany.sca.databinding.ExceptionHandler;
import org.apache.tuscany.sca.databinding.impl.BaseDataBinding;
/**
@@ -28,18 +27,10 @@ import org.apache.tuscany.sca.databinding.impl.BaseDataBinding;
public class JobDataBinding extends BaseDataBinding {
public static final String NAME = Job.class.getName();
- public static final String[] ALIASES = new String[] { "job" };
+ public static final String[] ALIASES = new String[] {"job"};
public JobDataBinding() {
super(NAME, ALIASES, Job.class);
}
- /**
- * @see org.apache.tuscany.sca.databinding.impl.BaseDataBinding#getWrapperHandler()
- */
- @Override
- public ExceptionHandler getExceptionHandler() {
- return new JobExceptionHandler();
- }
-
}
diff --git a/java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/JobDataMap.java b/java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/JobDataMap.java
index 2ded030680..40ee2ff010 100644
--- a/java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/JobDataMap.java
+++ b/java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/JobDataMap.java
@@ -18,8 +18,7 @@
*/
package org.apache.tuscany.sca.databinding.job;
-import java.util.*;
-import java.io.Serializable;
+import java.util.HashMap;
public class JobDataMap implements java.io.Serializable {
private static final long serialVersionUID = -2602843967597362950L;
diff --git a/java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/JobExceptionHandler.java b/java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/JobExceptionHandler.java
deleted file mode 100644
index 3b2e8c55e5..0000000000
--- a/java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/JobExceptionHandler.java
+++ /dev/null
@@ -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.databinding.job;
-
-import org.apache.tuscany.sca.databinding.ExceptionHandler;
-import org.apache.tuscany.sca.interfacedef.DataType;
-
-public class JobExceptionHandler implements ExceptionHandler {
-
- public Exception createException(DataType<DataType> exceptionType,
- String message, Object faultInfo, Throwable cause) {
- // TODO Auto-generated method stub
- return null;
- }
-
- public Object getFaultInfo(Exception exception) {
- // TODO Auto-generated method stub
- return null;
- }
-
- public DataType<?> getFaultType(DataType exceptionDataType) {
- // TODO Auto-generated method stub
- return null;
- }
-
-}
diff --git a/java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/OMElement2Job.java b/java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/OMElement2Job.java
index 090be8e5ff..057da6b67f 100644
--- a/java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/OMElement2Job.java
+++ b/java/sca/modules/databinding-job/src/main/java/org/apache/tuscany/sca/databinding/job/OMElement2Job.java
@@ -20,19 +20,13 @@ package org.apache.tuscany.sca.databinding.job;
import java.io.ByteArrayInputStream;
import java.io.ObjectInputStream;
-import java.util.Iterator;
-import javax.activation.DataHandler;
-
-import org.apache.axiom.attachments.ByteArrayDataSource;
import org.apache.axiom.om.OMElement;
-import org.apache.axiom.om.OMText;
import org.apache.tuscany.sca.databinding.PullTransformer;
import org.apache.tuscany.sca.databinding.TransformationContext;
import org.apache.tuscany.sca.databinding.TransformationException;
import org.apache.tuscany.sca.databinding.impl.BaseTransformer;
import org.apache.tuscany.sca.databinding.impl.XSDDataTypeConverter.Base64Binary;
-import org.apache.tuscany.sca.databinding.axiom.AxiomHelper;
/**
* Transformer to convert data from an OMElement to Job