[wildfly-dev] best way to get extensions to apply model changes immediately at runtime?
Jeff Mesnil
jmesnil at redhat.com
Thu Apr 28 08:42:08 EDT 2016
> To register your custom handler you need to override
> PersistentResourceDefinition.registerAttributes so instead of calling
> the superclass (which registers ReloadRequiredWriteAttributeHandler for
> all attributes) instead you register your handler(s).
>
> (Tomaz, I think we need to make this write handler registration easier.
> Perhaps something like a
> PersistentResourceDefinition.getAttributeHandlers() method that returns
> a Map<String, OperationStepHandler>. And then registerAttributes uses
> the map instead of hardcoding ReloadRequiredWriteAttributeHandler.
> Default impl just fills the map values with
> ReloadRequiredWriteAttributeHandler.)
Couldn’t we add a setWriteAttributeHandler(OSH) on the AttributeDefinition and default to ReloadRequiredWriteAttributeHandler if it’s not present?
--
Jeff Mesnil
JBoss, a division of Red Hat
http://jmesnil.net/
More information about the wildfly-dev
mailing list