public interface ClassDeactivator extends Serializable
ClassDeactivator allows to specify deactivated classes (if they implement
which can't be deactivated/customized via std. CDI mechanisms
(like the veto-method or alternative/specialized CDI-beans).
This might be the case e.g. for CDI Extensions because CDI mechanisms are not available at startup time.
Use it mainly to deactivate specific parts explicitly (blacklist approach), if there is an issue with such parts (and waiting for the next release isn't an option).
A class-deactivator will be resolved from the environment via the default resolvers or via a custom resolver which
allows to use any type of configuration-format. See
for more information about how to configure it. The configuration key is
All ClassDeactivators will get picked up in order of their ordinal and might explicitly activate or
Deactivatable classes. Returning a
null value means that the ClassDeactivator
doesn't care about the Deactivatable class.
An implementation has to be stateless.
Boolean isActivated(Class<? extends Deactivatable> targetClass)
Copyright © 2018 The Apache Software Foundation. All rights reserved.