Provide a way to deactivate cdi extension

Description

CDI extension provided in Hibernate Validator jar should sometimes not be activated depending of the environment, as it could interact with other components.
Hibernate Validator should provide a way to deactivate it's own provided extension to prevent unwanted interaction if necessary.

Have a look to org.apache.deltaspike.core.spi.activation.ClassDeactivator in the Apache Delta Spike project. The same mechanism could be replicated to implement this feature, or maybe Hibernate Validator could depend on Delta Spike?

see also forum reference - https://community.jboss.org/message/804247

Environment

None

Status

Assignee

Hardy Ferentschik

Reporter

Mathieu Lachance

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Major
Configure