001package org.apache.turbine.annotation; 002 003import java.lang.annotation.ElementType; 004import java.lang.annotation.Retention; 005import java.lang.annotation.RetentionPolicy; 006import java.lang.annotation.Target; 007 008import org.apache.turbine.modules.Assembler; 009 010/* 011 * Licensed to the Apache Software Foundation (ASF) under one 012 * or more contributor license agreements. See the NOTICE file 013 * distributed with this work for additional information 014 * regarding copyright ownership. The ASF licenses this file 015 * to you under the Apache License, Version 2.0 (the 016 * "License"); you may not use this file except in compliance 017 * with the License. You may obtain a copy of the License at 018 * 019 * http://www.apache.org/licenses/LICENSE-2.0 020 * 021 * Unless required by applicable law or agreed to in writing, 022 * software distributed under the License is distributed on an 023 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 024 * KIND, either express or implied. See the License for the 025 * specific language governing permissions and limitations 026 * under the License. 027 */ 028 029/** 030 * Annotation to mark fields in modules that require a loader to be injected 031 */ 032@Retention( RetentionPolicy.RUNTIME ) 033@Target( ElementType.FIELD ) 034public @interface TurbineLoader 035{ 036 /** 037 * Get the class of the loader target to inject 038 * 039 * @return the class the loader is responsible for 040 */ 041 Class<? extends Assembler> value(); 042}