I have seen it.. but does this work for EJB's as well? I ask becuase I have an EJB
which looks like this:
@Command(commandName = "PingBackend")
@AuditType(AuditLogType.PING_BACKEND)
@Stateless
public class PingBackendCommand extends VdcCommandBase {
....
I then created an Annotation Resolver:
public class CommandAnnotationPlugin extends ClassAnnotationPlugin{
private Log log = LogFactory.getLog(CommandAnnotationPlugin.class);
public CommandAnnotationPlugin() {
this(Command.class) ;
log.debug("************************************************************");
}
protected CommandAnnotationPlugin(Class annotation) {
super(annotation);
// TODO Auto-generated constructor stub
}
protected List<? extends MetaDataVisitorNode> internalApplyAnnotation(ClassInfo
info, Command annotation, BeanMetaData beanMetaData) throws Throwable
{
log.debug("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
log.debug("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
I see the Stars at creation, but never the Percents. I added another bean which implements
the same code to register a custom builder
BeanAnnotationAdapter beanAnnotationAdapter =
BeanAnnotationAdapterFactory.getInstance().getBeanAnnotationAdapter();
//String beanAnnotationAdapterBindName = MC_NAMESPACE_EJB3 +
"BeanAnnotationAdapter";
String beanAnnotationAdapterBindName = "CommandBeanAnnotationAdapter" ;
BeanMetaDataBuilder bmdb =
BeanMetaDataBuilder.createBuilder(beanAnnotationAdapterBindName,
beanAnnotationAdapter.getClass().getName()) ;
bmdb.addMethodInstallCallback("addAnnotationPlugin");
bmdb.addMethodUninstallCallback("removeAnnotationPlugin");
No matter if I put it in the ear, or in the deployer, I it seems like it never matches up
the annotation. Is there somehting else I need to do?
-- bk
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211637#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...