Package org.apache.webbeans.deployment
Class StereoTypeModel
- java.lang.Object
-
- org.apache.webbeans.deployment.StereoTypeModel
-
- All Implemented Interfaces:
IStereoTypeModel
public class StereoTypeModel extends Object implements IStereoTypeModel
Default implementation of theIStereoTypeModelcontract.- Version:
- $Rev$ $Date$
-
-
Constructor Summary
Constructors Constructor Description StereoTypeModel(WebBeansContext webBeansContext, Class<? extends Annotation> clazz)Creates a new instance of the stereotype model for given class.StereoTypeModel(WebBeansContext webBeansContext, Class<? extends Annotation> clazz, Annotation[] annotationDefs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)AnnotationgetDefaultDeploymentType()Gets default deployment type.AnnotationgetDefaultScopeType()Sets default deployment type.Set<Annotation>getInheritedStereoTypes()Returns a set of inherited stereotypes.Set<Annotation>getInterceptorBindingTypes()Returns set of interceptor binding that are definen by the stereotype.StringgetName()Returns name of the stereotype.inthashCode()booleanisNamed()voidsetName(String name)Sets name.
-
-
-
Constructor Detail
-
StereoTypeModel
public StereoTypeModel(WebBeansContext webBeansContext, Class<? extends Annotation> clazz)
Creates a new instance of the stereotype model for given class.- Parameters:
webBeansContext-clazz- stereotype type
-
StereoTypeModel
public StereoTypeModel(WebBeansContext webBeansContext, Class<? extends Annotation> clazz, Annotation[] annotationDefs)
-
-
Method Detail
-
getName
public String getName()
Returns name of the stereotype. As default, its class name.- Specified by:
getNamein interfaceIStereoTypeModel- Returns:
- the name
-
setName
public void setName(String name)
Sets name.- Specified by:
setNamein interfaceIStereoTypeModel- Parameters:
name- the name to set
-
getDefaultDeploymentType
public Annotation getDefaultDeploymentType()
Gets default deployment type.- Specified by:
getDefaultDeploymentTypein interfaceIStereoTypeModel- Returns:
- the defaultDeploymentType
-
getDefaultScopeType
public Annotation getDefaultScopeType()
Sets default deployment type.- Specified by:
getDefaultScopeTypein interfaceIStereoTypeModel- Returns:
- the defaultScopeType
-
getInterceptorBindingTypes
public Set<Annotation> getInterceptorBindingTypes()
Returns set of interceptor binding that are definen by the stereotype.- Specified by:
getInterceptorBindingTypesin interfaceIStereoTypeModel- Returns:
- set of interceptor bindings.
-
getInheritedStereoTypes
public Set<Annotation> getInheritedStereoTypes()
Returns a set of inherited stereotypes.- Specified by:
getInheritedStereoTypesin interfaceIStereoTypeModel- Returns:
- set of inherited stereotypes.
-
isNamed
public boolean isNamed()
- Specified by:
isNamedin interfaceIStereoTypeModel
-
-