org.jboss.webbeans.metadata
Class MergedStereotypes<T,E>

java.lang.Object
  extended by org.jboss.webbeans.metadata.MergedStereotypes<T,E>

public class MergedStereotypes<T,E>
extends java.lang.Object

Meta model for the merged stereotype for a bean

Author:
Pete Muir

Constructor Summary
MergedStereotypes(java.util.Set<java.lang.annotation.Annotation> stereotypeAnnotations, ManagerImpl manager)
          Constructor
 
Method Summary
 java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> getPossibleDeploymentTypes()
          Returns the possible deployment typess
 java.util.Set<java.lang.annotation.Annotation> getPossibleScopeTypes()
          Returns the possible scope types
 java.util.Set<java.lang.Class<?>> getRequiredTypes()
          Returns the required types
 java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getSupportedScopes()
          Returns the supported scopes
 boolean isBeanNameDefaulted()
          Indicates if the name i defaulted
 boolean isDeclaredInXml()
          Indicates if the bean was declared in XML
protected  void merge(java.util.Set<java.lang.annotation.Annotation> stereotypeAnnotations)
          Perform the merge
 java.lang.String toString()
          Gets a string representation of the merged stereotypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MergedStereotypes

public MergedStereotypes(java.util.Set<java.lang.annotation.Annotation> stereotypeAnnotations,
                         ManagerImpl manager)
Constructor

Parameters:
stereotypeAnnotations - The stereotypes to merge
Method Detail

merge

protected void merge(java.util.Set<java.lang.annotation.Annotation> stereotypeAnnotations)
Perform the merge

Parameters:
stereotypeAnnotations - The stereotype annotations

getPossibleDeploymentTypes

public java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> getPossibleDeploymentTypes()
Returns the possible deployment typess

Returns:
The deployment types

getPossibleScopeTypes

public java.util.Set<java.lang.annotation.Annotation> getPossibleScopeTypes()
Returns the possible scope types

Returns:
The scope types

isBeanNameDefaulted

public boolean isBeanNameDefaulted()
Indicates if the name i defaulted

Returns:
True if defaulted, false if not

getRequiredTypes

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

Returns:
The required types

getSupportedScopes

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

Returns:
The supported scopes

isDeclaredInXml

public boolean isDeclaredInXml()
Indicates if the bean was declared in XML

Returns:
True if declared in XML, else false

toString

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

Overrides:
toString in class java.lang.Object
Returns:
The string representation


Copyright © 2011. All Rights Reserved.