org.apache.webbeans.deployment
Class StereoTypeModel

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

public class StereoTypeModel
extends Object
implements IStereoTypeModel

Default implementation of the IStereoTypeModel contract.

Version:
$Rev$ $Date$

Constructor Summary
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
 boolean equals(Object obj)
          
 Annotation getDefaultDeploymentType()
          Gets default deployment type.
 Annotation getDefaultScopeType()
          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.
 String getName()
          Returns name of the stereotype.
 int hashCode()
          
 void setName(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,
                       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:
getName in interface IStereoTypeModel
Returns:
the name

setName

public void setName(String name)
Sets name.

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

getDefaultDeploymentType

public Annotation getDefaultDeploymentType()
Gets default deployment type.

Specified by:
getDefaultDeploymentType in interface IStereoTypeModel
Returns:
the defaultDeploymentType

getDefaultScopeType

public Annotation getDefaultScopeType()
Sets default deployment type.

Specified by:
getDefaultScopeType in interface IStereoTypeModel
Returns:
the defaultScopeType

getInterceptorBindingTypes

public Set<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 Set<Annotation> getInheritedStereoTypes()
Returns a set of inherited stereotypes.

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

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


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