"[EMAIL PROTECTED]" wrote : I'm currently going to iterate and try to implement 
all the aspect factories and see if I can get a woven class to publish its 
aspect dependencies to the kernel.  There's a few things I need to know:
  | 
  | * When I need to create an aspect, how do I resolve it.  Will it be in the 
registry if the dependencies have been resolved yet? If it will exist in 
registry when dependencies are NOT resolved, how do I determine if dependencies 
have been resolved or not?
  | 

It won't be in the registry if dependencies aren't resolved.
It will be known to the controller regardless

  |    KernelRegistryEntry getInstalledContext(Object name);
  | 


* ClassAdapter.getDependencies() is currently not called anywhere.  I need to 
know where this method should go, or you need to add the integration of this to 
the kernel yourself.

THanks,


No, I didn't know how you were going to do this, or the ClassAdapter for
that matter.
It belongs in AbstractKernelController$AbstractDescribeAction
and needs to update the context's dependency info:

  |          BeanMetaData metaData = context.getBeanMetaData();
  |          BeanInfo info = configurator.getBeanInfo(metaData);
  |          context.setBeanInfo(info);
  |          // HERE
  | 

I currently hide the ClassAdapter inside the BeanInfo abstraction.

If you can tell me what the api is I have no problem about doing it.
It is little more than

  | DepedencyInfo depends = context.getDependencyInfo();
  | for (Object o : beanInfo.getDepedencies()) // ClassAdapter.getDependencies 
or whatever
  |    depends.addIDependOn(new 
AbstractDependencyItem(KernelControllerState.INSTANTIATE, o, 
metaData.getName(), KernelControllerState.INSTALLED));
  | 

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

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


-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to