1 package org.apache.turbine.annotation;
2
3 import java.lang.annotation.ElementType;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
6 import java.lang.annotation.Target;
7
8 import org.apache.turbine.modules.Assembler;
9
10 /*
11 * Licensed to the Apache Software Foundation (ASF) under one
12 * or more contributor license agreements. See the NOTICE file
13 * distributed with this work for additional information
14 * regarding copyright ownership. The ASF licenses this file
15 * to you under the Apache License, Version 2.0 (the
16 * "License"); you may not use this file except in compliance
17 * with the License. You may obtain a copy of the License at
18 *
19 * http://www.apache.org/licenses/LICENSE-2.0
20 *
21 * Unless required by applicable law or agreed to in writing,
22 * software distributed under the License is distributed on an
23 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
24 * KIND, either express or implied. See the License for the
25 * specific language governing permissions and limitations
26 * under the License.
27 */
28
29 /**
30 * Annotation to mark fields in modules that require a loader to be injected
31 */
32 @Retention( RetentionPolicy.RUNTIME )
33 @Target( ElementType.FIELD )
34 public @interface TurbineLoader
35 {
36 /**
37 * Get the class of the loader target to inject
38 *
39 * @return the class the loader is responsible for
40 */
41 Class<? extends Assembler> value();
42 }