javax.annotation
Annotation Type Stereotype


@Retention(value=RUNTIME)
@Target(value=ANNOTATION_TYPE)
@Documented
public @interface Stereotype

Specifies that an annotation type is a stereotype.

Author:
Pete Muir, Gavin King

Optional Element Summary
 java.lang.Class<?>[] requiredTypes
          Require that stereotype beans have certain API types
 java.lang.Class<? extends java.lang.annotation.Annotation>[] supportedScopes
          Restrict the scope of the stereotyped bean
 

supportedScopes

public abstract java.lang.Class<? extends java.lang.annotation.Annotation>[] supportedScopes
Restrict the scope of the stereotyped bean

Returns:
the allowed scopes
Default:
{}

requiredTypes

public abstract java.lang.Class<?>[] requiredTypes
Require that stereotype beans have certain API types

Returns:
the required types
Default:
{}


Copyright © 2008-2009. All Rights Reserved.