    001// Licensed under the Apache License, Version 2.0 (the "License");
    002// you may not use this file except in compliance with the License.
    003// You may obtain a copy of the License at
    004//
    005//     http://www.apache.org/licenses/LICENSE-2.0
    006//
    007// Unless required by applicable law or agreed to in writing, software
    008// distributed under the License is distributed on an "AS IS" BASIS,
    009// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    010// See the License for the specific language governing permissions and
    011// limitations under the License.
    012
    013package org.apache.tapestry5.ioc.annotations;
    014
    015import java.lang.annotation.Documented;
    016import java.lang.annotation.Retention;
    017import java.lang.annotation.Target;
    018
    019import static java.lang.annotation.ElementType.TYPE;
    020import static java.lang.annotation.RetentionPolicy.RUNTIME;
    021
    022/**
    023 * Attached to a module class, this annotation identifies other module classes that should also be added to the
    024 * Registry. A class is processed once, even if it is mentioned multiple times. Using this annotation
    025 * is often easier than updating the JAR Manifest to list additional module class names.
    026 *
    027 * @since 5.4
    028 */
    029@Target(TYPE)
    030@Retention(RUNTIME)
    031@Documented
    032@UseWith(AnnotationUseContext.MODULE)
    033public @interface ImportModule
    034{
    035    /**
    036     * One or more classes that are also modules and should also be loaded.
    037     */
    038    Class[] value();
    039}