[jboss-dev-forums] [JBoss AS 7 Development] - JBoss extention doesn't find custom annotation
ansur
do-not-reply at jboss.com
Thu Jul 25 06:08:36 EDT 2013
ansur [https://community.jboss.org/people/ansur] created the discussion
"JBoss extention doesn't find custom annotation"
To view the discussion, visit: https://community.jboss.org/message/829694#829694
--------------------------------------------------------------
I'm building a JBoss extension which aims to detect a custom annotation being placed on an EJB implementation class. So the annotation is placed on the same level as @Singleton, @Stateless etc.
My DeploymentUnitProcessor can detect the EJBs, but when I load the class like this:
return moduleClassLoader.loadClass(viewDescription.getComponentDescription().getComponentClassName());
... I do get the Class object, but it only shows the EJB annotation (e.g. @Singleton) being present, not my custom one.
Obviously the RetentionPolicy is Runtime.
Is this due to the fact that whatever JBoss module is inspecting the class, doesn't have a notion of my custom Annotation?
And if this is so, which module is this, and could I register a dependency to the module containing my annotation at runtime?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/829694#829694]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130725/6179f193/attachment.html
More information about the jboss-dev-forums
mailing list