001/*
002Copyright (c) 2006,2007, Bruce Chapman
003
004All rights reserved.
005
006Redistribution and use in source and binary forms, with or without modification,
007 are permitted provided that the following conditions are met:
008
009    * Redistributions of source code must retain the above copyright notice,
010      this list of conditions and the following disclaimer.
011    * Redistributions in binary form must reproduce the above copyright notice,
012      this list of conditions and the following disclaimer in the documentation and/or
013      other materials provided with the distribution.
014    * Neither the name of the Hickory project nor the names of its contributors
015      may be used to endorse or promote products derived from this software without
016      specific prior written permission.
017
018THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
019"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
020LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
021A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
022CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
023EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
024PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
025PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
026LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
027NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
028SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
029*/
030
031/*
032 * GeneratePrisms.java
033 *
034 * Created on 12 August 2006, 20:41
035 */
036
037package io.jstach.prism;
038
039import java.lang.annotation.ElementType;
040import java.lang.annotation.Retention;
041import java.lang.annotation.RetentionPolicy;
042import java.lang.annotation.Target;
043
044/**
045 * Use this to group several @GeneratePrism annotations together, for example in a package
046 * annotation. If any of those annotations have a member element whose type is another of
047 * those annotations, then the Prism for the first will use the Prism for the second.
048 *
049 * <p>
050 * The target is relatively unimportant, however the generated Prism will be a member of
051 * the same package as the target.
052 *
053 * @author Bruce Chapman
054 */
055@Target({ ElementType.PACKAGE, ElementType.TYPE })
056@Retention(RetentionPolicy.SOURCE)
057public @interface GeneratePrisms {
058
059        /**
060         * The Prisms to be generated.
061         * @return a list of prisms to generate.
062         */
063        GeneratePrism[] value();
064
065}