cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r545466 - /incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/AbstractServiceFactory.java
Date Fri, 08 Jun 2007 09:50:29 GMT
Author: mmao
Date: Fri Jun  8 02:50:27 2007
New Revision: 545466

URL: http://svn.apache.org/viewvc?view=rev&rev=545466
Log:
Forgot to add AbstractServiceFactory,
   which extends AbstractEndpointFactory and implements ServiceBuilder
The specific frontend service builder extends it, 
   so we dont' need to modfiy the AbstractEndpointFactory


Added:
    incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/AbstractServiceFactory.java

Added: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/AbstractServiceFactory.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/AbstractServiceFactory.java?view=auto&rev=545466
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/AbstractServiceFactory.java
(added)
+++ incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/AbstractServiceFactory.java
Fri Jun  8 02:50:27 2007
@@ -0,0 +1,43 @@
+/**
+ * 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.cxf.frontend;
+
+import java.io.File;
+
+import org.apache.cxf.service.ServiceBuilder;
+import org.apache.cxf.service.model.ServiceInfo;
+
+public abstract class AbstractServiceFactory extends AbstractEndpointFactory implements ServiceBuilder
{
+    public ServiceInfo createService() {
+        try {
+            return createEndpoint().getEndpointInfo().getService();
+        } catch (Exception e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    public File getOutputFile() {
+        return null;
+    }
+
+    public void setServiceClass(Class clz) {
+        super.setServiceClass(clz);
+        getServiceFactory().setServiceClass(clz);
+    }
+}



Mime
View raw message