You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by jm...@apache.org on 2006/02/23 04:50:44 UTC
svn commit: r380037 - in
/incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/invocation:
jdk/JDKProxyFactory.java jdk/JDKProxyFactoryFactory.java
spi/ProxyFactoryFactory.java
Author: jmarino
Date: Wed Feb 22 19:50:42 2006
New Revision: 380037
URL: http://svn.apache.org/viewcvs?rev=380037&view=rev
Log:
minor code and package refactoring for invocation
Modified:
incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/invocation/jdk/JDKProxyFactory.java
incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/invocation/jdk/JDKProxyFactoryFactory.java
incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/invocation/spi/ProxyFactoryFactory.java
Modified: incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/invocation/jdk/JDKProxyFactory.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/invocation/jdk/JDKProxyFactory.java?rev=380037&r1=380036&r2=380037&view=diff
==============================================================================
--- incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/invocation/jdk/JDKProxyFactory.java (original)
+++ incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/invocation/jdk/JDKProxyFactory.java Wed Feb 22 19:50:42 2006
@@ -44,29 +44,8 @@
Map<Method, InvocationConfiguration> invocationConfigs = configuration.getInvocationConfigurations();
methodToInvocationConfig = new HashMap(invocationConfigs.size());
for (Map.Entry entry : invocationConfigs.entrySet()) {
-//<<<<<<< .mine
-// OperationType operation = (OperationType) entry.getKey();
-// if (operation instanceof JavaOperationType) {
-// JavaOperationType javaOperation = (JavaOperationType) operation;
-// Method method = javaOperation.getJavaMethod();
-// methodToInvocationConfig.put(method, (InvocationConfiguration) entry.getValue());
-// } else {
-// if (businessInterfaceArray == null || businessInterfaceArray.length <1){
-// throw new ProxyInitializationException("No interface configured for proxy");
-// }
-// Method[] methods = businessInterfaceArray[0].getMethods();
-// for (int i = 0; i < methods.length; i++) {
-// if (methods[i].getName().equals(operation.getName())) {
-// methodToInvocationConfig.put(methods[i], (InvocationConfiguration) entry.getValue());
-// break;
-// }
-// }
-// }
-//
-//=======
Method method = (Method) entry.getKey();
methodToInvocationConfig.put(method, (InvocationConfiguration) entry.getValue());
-//>>>>>>> .r379382
}
}
Modified: incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/invocation/jdk/JDKProxyFactoryFactory.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/invocation/jdk/JDKProxyFactoryFactory.java?rev=380037&r1=380036&r2=380037&view=diff
==============================================================================
--- incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/invocation/jdk/JDKProxyFactoryFactory.java (original)
+++ incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/invocation/jdk/JDKProxyFactoryFactory.java Wed Feb 22 19:50:42 2006
@@ -17,7 +17,7 @@
import org.apache.tuscany.core.invocation.spi.ProxyFactoryFactory;
/**
- *
+ * Creates JDK Dynamic Proxy-based proxy factories
*
* @version $Rev$ $Date$
*/
Modified: incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/invocation/spi/ProxyFactoryFactory.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/invocation/spi/ProxyFactoryFactory.java?rev=380037&r1=380036&r2=380037&view=diff
==============================================================================
--- incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/invocation/spi/ProxyFactoryFactory.java (original)
+++ incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/invocation/spi/ProxyFactoryFactory.java Wed Feb 22 19:50:42 2006
@@ -1,5 +1,23 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.tuscany.core.invocation.spi;
+/**
+ * Creates proxy factories which may be subsequently configured to generate proxies
+ *
+ * @version $Rev$ $Date$
+ */
public interface ProxyFactoryFactory {
public ProxyFactory createProxyFactory();