[wildfly-dev] Custom wildfly subsystem deployer
Ales Justin
ales.justin at gmail.com
Thu Nov 21 08:59:18 EST 2013
What exactly are you trying to do -- a bit confusing description?
Or, from what I can understand, a simple ClassFileTransformer could do the trick for you.
-Ales
On 20 Nov 2013, at 15:59, Dejan Kitic <kdejan at gmail.com> wrote:
> Hi,
>
> First of all my apologies, if I am asking the question in wrong place, though my gut feeling tells me that people on this list would know the most about this matter.
>
> I am trying to write my own subsystem, and have wrote most of it, using https://docs.jboss.org/author/display/AS72/Extending+JBoss+AS+7 and maven archtype there.
>
> I have my own annotation, which user can add onto the attribute of EJB or CDI bean, and deployment processor for my subsystem finds all classes with this annotation.
> From my understanding inside deployment processor executed during Phase.PARSE, getAttachment(Attachments.ANNOTATION_INDEX) will enable me to find all classes with my annotation, without loading the classes (jandex).
>
> After finding them all, I am trying to modify the class to inject instance to that annotated field with value that has been created in my subsystem for that deployment.
>
> I think options are to rely on Weld, or modify bytecode to set this field with my value stored in my subsystem when class is instantiated.
> If I change phase
>
> Am I going in the right direction with this, what would be recommended way to do something like this? Any pointers would be welcome.
>
> Regards,
> Dejan
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20131121/20cdb086/attachment.html
More information about the wildfly-dev
mailing list