Hi Paul,
Thanks for the prompt reply!
Could you also help me understand the below behavior from the example:
processorTarget.addDeploymentProcessor("server", Phase.DEPENDENCIES, 0x4000, new SubsystemDeploymentProcessor());
In my case I was able to register the tracker subsystem and register
tracker.xyz service, but the deploy() method was not called on a deployment. I changed the line to the one below and the deploy() method was called on deployment of an artifact:
processorTarget.addDeploymentProcessor("server", Phase.STRUCTURE, Phase.STRUCTURE_MOUNT, new SubsystemDeploymentProcessor());
although, the phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT); is returning null.
Am I missing something? Could you please suggest.
Thanks!