You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sv...@apache.org on 2007/02/13 19:49:47 UTC
svn commit: r507154 - in
/incubator/tuscany/branches/sca-java-integration/sca/kernel/spi: ./
src/main/java/org/apache/tuscany/spi/extension/
src/main/java/org/apache/tuscany/spi/implementation/java/
Author: svkrish
Date: Tue Feb 13 10:49:46 2007
New Revision: 507154
URL: http://svn.apache.org/viewvc?view=rev&rev=507154
Log:
Enhanced support for 'AllowsPassByReference' to be applied at component implementation method level
Modified:
incubator/tuscany/branches/sca-java-integration/sca/kernel/spi/.checkstyle
incubator/tuscany/branches/sca-java-integration/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/extension/AtomicComponentExtension.java
incubator/tuscany/branches/sca-java-integration/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/implementation/java/PojoComponentType.java
Modified: incubator/tuscany/branches/sca-java-integration/sca/kernel/spi/.checkstyle
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/kernel/spi/.checkstyle?view=diff&rev=507154&r1=507153&r2=507154
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/kernel/spi/.checkstyle (original)
+++ incubator/tuscany/branches/sca-java-integration/sca/kernel/spi/.checkstyle Tue Feb 13 10:49:46 2007
@@ -1,24 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * 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.
--->
<fileset-config file-format-version="1.2.0" simple-config="true">
- <fileset name="all" enabled="true" check-config-name="Tuscany Checks" local="false">
+ <local-check-config name="Tuscany" location="F:\TuscanyLatest\buildtools\src\main\resources\tuscany-checkstyle.xml" type="external" description="">
+ <additional-data name="protect-config-file" value="false"/>
+ </local-check-config>
+ <fileset name="all" enabled="true" check-config-name="Sun Checks" local="false">
<file-match-pattern match-pattern="." include-pattern="true"/>
</fileset>
</fileset-config>
Modified: incubator/tuscany/branches/sca-java-integration/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/extension/AtomicComponentExtension.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/extension/AtomicComponentExtension.java?view=diff&rev=507154&r1=507153&r2=507154
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/extension/AtomicComponentExtension.java (original)
+++ incubator/tuscany/branches/sca-java-integration/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/extension/AtomicComponentExtension.java Tue Feb 13 10:49:46 2007
@@ -62,6 +62,7 @@
private final long maxIdleTime;
private final long maxAge;
private boolean allowsPassByReference;
+ private List<String> passByReferenceMethods;
protected AtomicComponentExtension(String name,
CompositeComponent parent,
@@ -212,5 +213,13 @@
chain.prepare();
}
}
+ }
+
+ public List<String> getPassByReferenceMethods() {
+ return passByReferenceMethods;
+ }
+
+ public void setPassByReferenceMethods(List<String> passByReferenceMethods) {
+ this.passByReferenceMethods = passByReferenceMethods;
}
}
Modified: incubator/tuscany/branches/sca-java-integration/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/implementation/java/PojoComponentType.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/implementation/java/PojoComponentType.java?view=diff&rev=507154&r1=507153&r2=507154
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/implementation/java/PojoComponentType.java (original)
+++ incubator/tuscany/branches/sca-java-integration/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/implementation/java/PojoComponentType.java Tue Feb 13 10:49:46 2007
@@ -20,7 +20,9 @@
import java.lang.reflect.Member;
import java.lang.reflect.Method;
+import java.util.ArrayList;
import java.util.HashMap;
+import java.util.List;
import java.util.Map;
import org.apache.tuscany.spi.model.ComponentType;
@@ -41,6 +43,7 @@
private Method destroyMethod;
private final Map<String, Resource> resources = new HashMap<String, Resource>();
private Member conversationIDMember;
+ private List<String> passByReferenceMethods = new ArrayList<String>();
/**
* Returns the constructor used to instantiate implementation instances
@@ -107,4 +110,12 @@
public void setConversationIDMember(Member conversationIDMember) {
this.conversationIDMember = conversationIDMember;
}
+
+ public List<String> getPassByReferenceMethods() {
+ return passByReferenceMethods;
+ }
+
+ public void setPassByReferenceMethods(List<String> passByReferenceMethods) {
+ this.passByReferenceMethods = passByReferenceMethods;
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org