org.jboss.webbeans.metadata
Class StereotypeModel<T extends java.lang.annotation.Annotation>

java.lang.Object
  extended by org.jboss.webbeans.metadata.AnnotationModel<T>
      extended by org.jboss.webbeans.metadata.StereotypeModel<T>

public class StereotypeModel<T extends java.lang.annotation.Annotation>
extends AnnotationModel<T>

A meta model for a stereotype, allows us to cache a stereotype and to validate it

Author:
Pete Muir

Constructor Summary
StereotypeModel(java.lang.Class<T> sterotype, ClassTransformer transformer)
          Constructor
 
Method Summary
 java.lang.annotation.Annotation getDefaultDeploymentType()
          Get the default deployment type the stereotype specifies
 java.lang.annotation.Annotation getDefaultScopeType()
          Get the default scope type the stereotype specifies
 java.util.Set<java.lang.annotation.Annotation> getInterceptorBindings()
          Get any interceptor bindings the the stereotype specifies
protected  java.lang.Class<? extends java.lang.annotation.Annotation> getMetaAnnotation()
          Gets the meta-annotation type
 java.util.Set<java.lang.Class<?>> getRequiredTypes()
          Gets the required types
 java.lang.Class<? extends java.lang.annotation.Annotation> getStereotypeClass()
          Deprecated. 
 java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getSupportedScopes()
          Gets the supported scopes
 boolean isBeanNameDefaulted()
          Indicates if the bean name is defaulted
 java.lang.String toString()
          Gets a string representation of the stereotype
 
Methods inherited from class org.jboss.webbeans.metadata.AnnotationModel
getAnnotatedAnnotation, getRawType, init, initType, initValid, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StereotypeModel

public StereotypeModel(java.lang.Class<T> sterotype,
                       ClassTransformer transformer)
Constructor

Parameters:
sterotype - The stereotype
Method Detail

getDefaultDeploymentType

public java.lang.annotation.Annotation getDefaultDeploymentType()
Get the default deployment type the stereotype specifies

Returns:
The default deployment type, or null if none is specified

getDefaultScopeType

public java.lang.annotation.Annotation getDefaultScopeType()
Get the default scope type the stereotype specifies

Returns:
The default scope type, or null if none is specified

getInterceptorBindings

public java.util.Set<java.lang.annotation.Annotation> getInterceptorBindings()
Get any interceptor bindings the the stereotype specifies

Returns:
The interceptor bindings, or an empty set if none are specified.

isBeanNameDefaulted

public boolean isBeanNameDefaulted()
Indicates if the bean name is defaulted

Returns:
True if defaulted, false otherwise

getSupportedScopes

public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getSupportedScopes()
Gets the supported scopes

Returns:
A set of supported scopes, or an empty set if none are specified

getRequiredTypes

public java.util.Set<java.lang.Class<?>> getRequiredTypes()
Gets the required types

Returns:
A set of required types, or an empty set if none are specified

getStereotypeClass

@Deprecated
public java.lang.Class<? extends java.lang.annotation.Annotation> getStereotypeClass()
Deprecated. 

Gets the type

Returns:
The type

toString

public java.lang.String toString()
Gets a string representation of the stereotype

Overrides:
toString in class AnnotationModel<T extends java.lang.annotation.Annotation>
Returns:
The string representation

getMetaAnnotation

protected java.lang.Class<? extends java.lang.annotation.Annotation> getMetaAnnotation()
Gets the meta-annotation type

Specified by:
getMetaAnnotation in class AnnotationModel<T extends java.lang.annotation.Annotation>
Returns:
The Stereotype class


Copyright © 2011. All Rights Reserved.