org.apache.webbeans.deployment
Class StereoTypeModel

java.lang.Object
  extended by org.apache.webbeans.deployment.StereoTypeModel
All Implemented Interfaces:
IStereoTypeModel

public class StereoTypeModel
extends java.lang.Object
implements IStereoTypeModel

Default implementation of the IStereoTypeModel contract.

Version:
$Rev$ $Date$

Constructor Summary
StereoTypeModel(WebBeansContext webBeansContext, java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
          Creates a new instance of the stereotype model for given class.
StereoTypeModel(WebBeansContext webBeansContext, java.lang.Class<? extends java.lang.annotation.Annotation> clazz, java.lang.annotation.Annotation[] annotationDefs)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 java.lang.annotation.Annotation getDefaultDeploymentType()
          Gets default deployment type.
 java.lang.annotation.Annotation getDefaultScopeType()
          Sets default deployment type.
 java.util.Set<java.lang.annotation.Annotation> getInheritedStereoTypes()
          Returns a set of inherited stereotypes.
 java.util.Set<java.lang.annotation.Annotation> getInterceptorBindingTypes()
          Returns set of interceptor binding that are definen by the stereotype.
 java.lang.String getName()
          Returns name of the stereotype.
 int hashCode()
          
 void setName(java.lang.String name)
          Sets name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StereoTypeModel

public StereoTypeModel(WebBeansContext webBeansContext,
                       java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Creates a new instance of the stereotype model for given class.

Parameters:
webBeansContext -
clazz - stereotype type

StereoTypeModel

public StereoTypeModel(WebBeansContext webBeansContext,
                       java.lang.Class<? extends java.lang.annotation.Annotation> clazz,
                       java.lang.annotation.Annotation[] annotationDefs)
Method Detail

getName

public java.lang.String getName()
Returns name of the stereotype. As default, its class name.

Specified by:
getName in interface IStereoTypeModel
Returns:
the name

setName

public void setName(java.lang.String name)
Sets name.

Specified by:
setName in interface IStereoTypeModel
Parameters:
name - the name to set

getDefaultDeploymentType

public java.lang.annotation.Annotation getDefaultDeploymentType()
Gets default deployment type.

Specified by:
getDefaultDeploymentType in interface IStereoTypeModel
Returns:
the defaultDeploymentType

getDefaultScopeType

public java.lang.annotation.Annotation getDefaultScopeType()
Sets default deployment type.

Specified by:
getDefaultScopeType in interface IStereoTypeModel
Returns:
the defaultScopeType

getInterceptorBindingTypes

public java.util.Set<java.lang.annotation.Annotation> getInterceptorBindingTypes()
Returns set of interceptor binding that are definen by the stereotype.

Specified by:
getInterceptorBindingTypes in interface IStereoTypeModel
Returns:
set of interceptor bindings.

getInheritedStereoTypes

public java.util.Set<java.lang.annotation.Annotation> getInheritedStereoTypes()
Returns a set of inherited stereotypes.

Specified by:
getInheritedStereoTypes in interface IStereoTypeModel
Returns:
set of inherited stereotypes.

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.