// Copyright 2007 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.tapestry.ioc.annotations;

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

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import org.apache.tapestry.ioc.services.ChainBuilder;

import apple.awt.StrategyBufferImage;

/**
 * Marker annotation used to denote a service that is the primary instance of some common interface.
 * This is often used when a service is a {@linkplain ChainBuilder chain of command} or
 * {@linkplain StrategyBufferImage strategy-based} and, therefore, many services will implement the
 * same interface.
 */
@Target(
{ PARAMETER, FIELD })
@Retention(RUNTIME)
@Documented
public @interface Primary
{

}

@@ -994,25 +994,47 @@
 er;%0A
-%0A
 import 
-apple.awt
+org.apache.tapestry.ioc.services
 .Str
@@ -1040,25 +1040,21 @@
 rategyBu
-fferImage
+ilder
 ;%0A%0A/**%0A 
@@ -1270,17 +1270,13 @@
 gyBu
-fferImage
+ilder
  str
@@ -1340,16 +1340,16 @@
  the
-%0A *
  same
+%0A *
  int

Convert uses of @InjectService to be @Inject plus a marker annotation