org.apache.myfaces.extensions.cdi.core.api.config
Class CodiCoreConfig

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.core.api.config.AbstractAttributeAware
      extended by org.apache.myfaces.extensions.cdi.core.api.config.CodiCoreConfig
All Implemented Interfaces:
Serializable, AttributeAware, CodiConfig

@ApplicationScoped
public class CodiCoreConfig
extends AbstractAttributeAware
implements CodiConfig

Configuration for the core of CODI - it's customizable via the @Alternative or @Specializes mechanism of CDI.

See Also:
Serialized Form

Constructor Summary
protected CodiCoreConfig()
           
 
Method Summary
 boolean isAdvancedQualifierRequiredForDependencyInjection()
          Per default several artifacts which aren't managed by CDI have to be annotated with Advanced as marker for performing manual dependency injection.
 boolean isConfigurationLoggingEnabled()
          Allows to disable the logging of the current configuration during the bootstrapping process.
 boolean isInvalidBeanCreationEventEnabled()
          Specifies if the InvalidBeanCreationEvent will be fired if a BeanCreationDecisionVoter detects a violation.
 
Methods inherited from class org.apache.myfaces.extensions.cdi.core.api.config.AbstractAttributeAware
containsAttribute, getAttribute, initConfig, setAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodiCoreConfig

protected CodiCoreConfig()
Method Detail

isAdvancedQualifierRequiredForDependencyInjection

public boolean isAdvancedQualifierRequiredForDependencyInjection()
Per default several artifacts which aren't managed by CDI have to be annotated with Advanced as marker for performing manual dependency injection. It isn't performed per default because the majority of those artifacts don't require dependency injection.

Returns:
true if the usage of Advanced, false otherwise

isConfigurationLoggingEnabled

public boolean isConfigurationLoggingEnabled()
Allows to disable the logging of the current configuration during the bootstrapping process.

Returns:
true if the configuration should be logged, false otherwise

isInvalidBeanCreationEventEnabled

public boolean isInvalidBeanCreationEventEnabled()
Specifies if the InvalidBeanCreationEvent will be fired if a BeanCreationDecisionVoter detects a violation. This feature is deactivated per default to avoid side-effects.

Returns:
true if the event should be fired, false otherwise


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