[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: JBMICROCONT-23, support for lifecycle annotations

alesj do-not-reply at jboss.com
Thu Oct 26 15:50:50 EDT 2006


>> Just wing it
Wing it?

I added annotation lifecycle support.
But I have problems since my annotations don't get picked up by container module.

  |       Set<MethodInfo> methods = beanInfo.getMethods();
  |       if (methods != null)
  |       {
  |          for (MethodInfo mi : methods)
  |          {
  |             if (mi.isAnnotationPresent(getUninstallAnnotation()))
  |             {
  |                return mi.getName();
  |             }
  |          }
  |       }
  | 
Results in no lifecycle annotation found.

How is with actual lifecycle annotation class usage in annotation lookup - or should I use a straight String?

  |    public String getInstallAnnotation()
  |    {
  |       return CreateLifecycle.class.getName();
  |    }
  | 

Lifecycle annotations have C in cycle in lower case - as all other lifecycle classes - not as in JIRA issue.

And what's the status of JBossXB, since I get a lot of ClassCastExc while testing - saying my metadata is of illegal class.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981116#3981116

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981116



More information about the jboss-dev-forums mailing list