Could you say why?

   ...ant

On Thu, May 14, 2009 at 8:38 PM,  <[email protected]> wrote:
> Author: rfeng
> Date: Thu May 14 19:38:45 2009
> New Revision: 774895
>
> URL: http://svn.apache.org/viewvc?rev=774895&view=rev
> Log:
> Add @Service annotations
>
> Modified:
>    
> tuscany/java/sca/samples/calculator/src/main/java/calculator/AddServiceImpl.java
>    
> tuscany/java/sca/samples/calculator/src/main/java/calculator/CalculatorServiceImpl.java
>    
> tuscany/java/sca/samples/calculator/src/main/java/calculator/DivideServiceImpl.java
>    
> tuscany/java/sca/samples/calculator/src/main/java/calculator/MultiplyServiceImpl.java
>    
> tuscany/java/sca/samples/calculator/src/main/java/calculator/SubtractServiceImpl.java
>
> Modified: 
> tuscany/java/sca/samples/calculator/src/main/java/calculator/AddServiceImpl.java
> URL: 
> http://svn.apache.org/viewvc/tuscany/java/sca/samples/calculator/src/main/java/calculator/AddServiceImpl.java?rev=774895&r1=774894&r2=774895&view=diff
> ==============================================================================
> --- 
> tuscany/java/sca/samples/calculator/src/main/java/calculator/AddServiceImpl.java
>  (original)
> +++ 
> tuscany/java/sca/samples/calculator/src/main/java/calculator/AddServiceImpl.java
>  Thu May 14 19:38:45 2009
> @@ -6,24 +6,27 @@
>  * 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.
> + * under the License.
>  */
>  package calculator;
>
>  import java.util.logging.Level;
>  import java.util.logging.Logger;
>
> +import org.oasisopen.sca.annotation.Service;
> +
>  /**
>  * An implementation of the Add service
>  */
> +...@service(AddService.class)
>  public class AddServiceImpl implements AddService {
>
>     public double add(double n1, double n2) {
>
> Modified: 
> tuscany/java/sca/samples/calculator/src/main/java/calculator/CalculatorServiceImpl.java
> URL: 
> http://svn.apache.org/viewvc/tuscany/java/sca/samples/calculator/src/main/java/calculator/CalculatorServiceImpl.java?rev=774895&r1=774894&r2=774895&view=diff
> ==============================================================================
> --- 
> tuscany/java/sca/samples/calculator/src/main/java/calculator/CalculatorServiceImpl.java
>  (original)
> +++ 
> tuscany/java/sca/samples/calculator/src/main/java/calculator/CalculatorServiceImpl.java
>  Thu May 14 19:38:45 2009
> @@ -6,24 +6,26 @@
>  * 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.
> + * under the License.
>  */
>  package calculator;
>
>  import org.oasisopen.sca.annotation.Reference;
> +import org.oasisopen.sca.annotation.Service;
>
>
>  /**
>  * An implementation of the Calculator service.
>  */
> +...@service(CalculatorService.class)
>  public class CalculatorServiceImpl implements CalculatorService {
>
>     private AddService addService;
>
> Modified: 
> tuscany/java/sca/samples/calculator/src/main/java/calculator/DivideServiceImpl.java
> URL: 
> http://svn.apache.org/viewvc/tuscany/java/sca/samples/calculator/src/main/java/calculator/DivideServiceImpl.java?rev=774895&r1=774894&r2=774895&view=diff
> ==============================================================================
> --- 
> tuscany/java/sca/samples/calculator/src/main/java/calculator/DivideServiceImpl.java
>  (original)
> +++ 
> tuscany/java/sca/samples/calculator/src/main/java/calculator/DivideServiceImpl.java
>  Thu May 14 19:38:45 2009
> @@ -6,24 +6,27 @@
>  * 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.
> + * under the License.
>  */
>  package calculator;
>
>  import java.util.logging.Level;
>  import java.util.logging.Logger;
>
> +import org.oasisopen.sca.annotation.Service;
> +
>  /**
>  * An implementation of the Divide service.
>  */
> +...@service(DivideService.class)
>  public class DivideServiceImpl implements DivideService {
>
>     public double divide(double n1, double n2) {
>
> Modified: 
> tuscany/java/sca/samples/calculator/src/main/java/calculator/MultiplyServiceImpl.java
> URL: 
> http://svn.apache.org/viewvc/tuscany/java/sca/samples/calculator/src/main/java/calculator/MultiplyServiceImpl.java?rev=774895&r1=774894&r2=774895&view=diff
> ==============================================================================
> --- 
> tuscany/java/sca/samples/calculator/src/main/java/calculator/MultiplyServiceImpl.java
>  (original)
> +++ 
> tuscany/java/sca/samples/calculator/src/main/java/calculator/MultiplyServiceImpl.java
>  Thu May 14 19:38:45 2009
> @@ -6,24 +6,27 @@
>  * 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.
> + * under the License.
>  */
>  package calculator;
>
>  import java.util.logging.Level;
>  import java.util.logging.Logger;
>
> +import org.oasisopen.sca.annotation.Service;
> +
>  /**
>  * An implementation of the Multiply service.
>  */
> +...@service(MultiplyService.class)
>  public class MultiplyServiceImpl implements MultiplyService {
>
>     public double multiply(double n1, double n2) {
>
> Modified: 
> tuscany/java/sca/samples/calculator/src/main/java/calculator/SubtractServiceImpl.java
> URL: 
> http://svn.apache.org/viewvc/tuscany/java/sca/samples/calculator/src/main/java/calculator/SubtractServiceImpl.java?rev=774895&r1=774894&r2=774895&view=diff
> ==============================================================================
> --- 
> tuscany/java/sca/samples/calculator/src/main/java/calculator/SubtractServiceImpl.java
>  (original)
> +++ 
> tuscany/java/sca/samples/calculator/src/main/java/calculator/SubtractServiceImpl.java
>  Thu May 14 19:38:45 2009
> @@ -6,24 +6,27 @@
>  * 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.
> + * under the License.
>  */
>  package calculator;
>
>  import java.util.logging.Level;
>  import java.util.logging.Logger;
>
> +import org.oasisopen.sca.annotation.Service;
> +
>  /**
>  * An implementation of the subtract service.
>  */
> +...@service(SubtractService.class)
>  public class SubtractServiceImpl implements SubtractService {
>
>     public double subtract(double n1, double n2) {
>
>
>

Reply via email to