// Copyright 2006, 2008 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.tapestry5.ioc.annotations;

import java.lang.annotation.Documented;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.PARAMETER;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;


/**
 * Annotation used with parameters of service builder methods to identify the service to be injected into the service
 * builder method via the parameter. In many cases the {@link org.apache.tapestry5.ioc.annotations.Inject} annotation is
 * more flexible or appropriate.
 * <p/>
 * This annotation may also be used with fields of service implementation classes, modules, or other objects constructed
 * via {@link org.apache.tapestry5.ioc.ObjectLocator#autobuild(Class)}.
 */
@Target({PARAMETER, FIELD})
@Retention(RUNTIME)
@Documented
public @interface InjectService
{

    /**
     * The id of the service to inject; either a fully qualified id, or the unqualified id of a service within the same
     * module.
     */
    String value();
}

@@ -47,21 +47,19 @@
 undation
-%0D
 %0A//
-%0D
 %0A// Lice
@@ -117,17 +117,16 @@
 cense%22);
-%0D
 %0A// you 
@@ -185,17 +185,16 @@
 License.
-%0D
 %0A// You 
@@ -228,21 +228,19 @@
 cense at
-%0D
 %0A//
-%0D
 %0A//     
@@ -285,13 +285,11 @@
 -2.0
-%0D
 %0A//
-%0D
 %0A// 
@@ -355,17 +355,16 @@
 software
-%0D
 %0A// dist
@@ -424,17 +424,16 @@
 %22 BASIS,
-%0D
 %0A// WITH
@@ -500,17 +500,16 @@
 implied.
-%0D
 %0A// See 
@@ -571,17 +571,16 @@
 ions and
-%0D
 %0A// limi
@@ -605,19 +605,17 @@
 License.
-%0D%0A%0D
+%0A
 %0Apackage
@@ -652,19 +652,17 @@
 tations;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -693,17 +693,16 @@
 umented;
-%0D
 %0Aimport 
@@ -747,17 +747,16 @@
 e.FIELD;
-%0D
 %0Aimport 
@@ -805,17 +805,16 @@
 RAMETER;
-%0D
 %0Aimport 
@@ -844,17 +844,16 @@
 tention;
-%0D
 %0Aimport 
@@ -904,17 +904,16 @@
 RUNTIME;
-%0D
 %0Aimport 
@@ -944,18 +944,14 @@
 get;
-%0D%0A%0D%0A%0D
+%0A%0A
 %0A/**
-%0D
 %0A * 
@@ -1064,17 +1064,16 @@
  service
-%0D
 %0A * buil
@@ -1185,17 +1185,16 @@
 ation is
-%0D
 %0A * more
@@ -1222,17 +1222,16 @@
 ate.
-%0D
 %0A * %3Cp/%3E
 %0D%0A *
@@ -1226,17 +1226,16 @@
 %0A * %3Cp/%3E
-%0D
 %0A * This
@@ -1347,17 +1347,16 @@
 structed
-%0D
 %0A * via 
@@ -1423,14 +1423,12 @@
 s)%7D.
-%0D
 %0A */
-%0D
 %0A@Ta
@@ -1451,17 +1451,16 @@
  FIELD%7D)
-%0D
 %0A@Retent
@@ -1471,17 +1471,16 @@
 RUNTIME)
-%0D
 %0A@Docume
@@ -1483,17 +1483,16 @@
 cumented
-%0D
 %0Apublic 
@@ -1519,22 +1519,19 @@
 vice
-%0D
 %0A%7B
-%0D%0A%0D
+%0A
 %0A    /**
 %0D%0A  
@@ -1526,17 +1526,16 @@
 %0A    /**
-%0D
 %0A     * 
@@ -1646,17 +1646,16 @@
 the same
-%0D
 %0A     * 
@@ -1665,17 +1665,16 @@
 ule.
-%0D
 %0A     */
 %0D%0A  
@@ -1669,17 +1669,16 @@
 %0A     */
-%0D
 %0A    Str
@@ -1693,9 +1693,7 @@
 e();
-%0D
 %0A%7D
-%0D
 %0A

Add svn:eol-style=native to source files