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. This is often easier than updating the JAR Manifest.
025 *
026 * @deprecated Deprecated in 5.4, use {@link org.apache.tapestry5.ioc.annotations.ImportModule} instead.
027 */
028@Target(TYPE)
029@Retention(RUNTIME)
030@Documented
031@UseWith(AnnotationUseContext.MODULE)
032public @interface SubModule
033{
034
035    /**
036     * One or more classes that are also modules and should also be loaded.
037     */
038    Class[] value();
039}