How about an annotation processor to create "glue code" and descriptor to convert your code into RHQ plugin?