You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by de...@apache.org on 2005/04/30 10:30:43 UTC

svn commit: r165395 - in /webservices/axis/trunk/java/modules/core/src/org/apache/axis: deployment/EngineContextFactoryImpl.java engine/EngineContextFactory.java

Author: deepal
Date: Sat Apr 30 01:30:41 2005
New Revision: 165395

URL: http://svn.apache.org/viewcvs?rev=165395&view=rev
Log: (empty)

Added:
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/EngineContextFactoryImpl.java
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/EngineContextFactory.java

Added: webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/EngineContextFactoryImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/EngineContextFactoryImpl.java?rev=165395&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/EngineContextFactoryImpl.java (added)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/EngineContextFactoryImpl.java Sat Apr 30 01:30:41 2005
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ * 
+ * Licensed 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.axis.deployment;
+
+import org.apache.axis.context.ContextBuilder;
+import org.apache.axis.context.EngineContext;
+import org.apache.axis.engine.AxisFault;
+import org.apache.axis.engine.EngineContextFactory;
+
+
+public class EngineContextFactoryImpl implements EngineContextFactory {
+    public EngineContext createContextBuilder(String file) throws AxisFault {
+        try {
+            ContextBuilder builder = new ContextBuilder();
+            return builder.buildEngineContext(file);
+        } catch (DeploymentException e) {
+            throw AxisFault.makeFault(e);
+        }
+    }
+}

Added: webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/EngineContextFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/EngineContextFactory.java?rev=165395&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/EngineContextFactory.java (added)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/EngineContextFactory.java Sat Apr 30 01:30:41 2005
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.axis.engine;
+
+import org.apache.axis.context.EngineContext;
+
+/**
+ * Interface EngineContextFactory
+ */
+public interface EngineContextFactory {
+    /**
+     * Method createContextBuilder
+     *
+     * @param file
+     * @return
+     * @throws AxisFault
+     */
+    public EngineContext createContextBuilder(String file) throws AxisFault;
+}