org.jboss.seam.faces.context
Class FacesAnnotationsAdapterExtension

java.lang.Object
  extended by org.jboss.seam.faces.context.FacesAnnotationsAdapterExtension
All Implemented Interfaces:
Extension

public class FacesAnnotationsAdapterExtension
extends Object
implements Extension

Alias the JSF scope annotations to the CDI scope annotations. If a JSF scope annotation is detected, advise the developer to update the code to use the equivalent CDI scope annotation. Forbid the developer from using the JSF managed bean annotation.

Author:
Dan Allen

Constructor Summary
FacesAnnotationsAdapterExtension()
           
 
Method Summary
 void aliasJsfScopeIfDetected(ProcessAnnotatedType<Object> annotatedType)
           
 void failIfJsfManagedBeanAnnotationPresent(ProcessBean<?> bean)
           
static Map<Class<?>,Class<? extends Annotation>> getAliasedbeans()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacesAnnotationsAdapterExtension

public FacesAnnotationsAdapterExtension()
Method Detail

getAliasedbeans

public static Map<Class<?>,Class<? extends Annotation>> getAliasedbeans()

aliasJsfScopeIfDetected

public void aliasJsfScopeIfDetected(@Observes
                                    ProcessAnnotatedType<Object> annotatedType)

failIfJsfManagedBeanAnnotationPresent

public void failIfJsfManagedBeanAnnotationPresent(@Observes
                                                  ProcessBean<?> bean)


Copyright © 2009-2011 Seam Framework. All Rights Reserved.