org.apache.myfaces.extensions.cdi.core.impl.projectstage
Class ProjectStageActivationExtension
java.lang.Object
org.apache.myfaces.extensions.cdi.core.impl.projectstage.ProjectStageActivationExtension
- All Implemented Interfaces:
- javax.enterprise.inject.spi.Extension, Deactivatable
public class ProjectStageActivationExtension
- extends Object
- implements javax.enterprise.inject.spi.Extension, Deactivatable
This class implements the logic for handling
ProjectStageActivated
annotations.
We simply listen for all annotated types to get scanned, and
if it has a ProjectStageActivated
annotation but the
the current ProjectStage
is not in the list, we simply
veto that bean.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectStageActivationExtension
public ProjectStageActivationExtension()
getProjectStage
protected ProjectStage getProjectStage()
vetoAlternativeTypes
protected void vetoAlternativeTypes(@Observes
javax.enterprise.inject.spi.ProcessAnnotatedType<Object> pat)
- Check if the
AnnotatedType
is an @Alternative and
is not disabled for the current ProjectStage
.
isActivated
public boolean isActivated()
- Specified by:
isActivated
in interface Deactivatable
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.