-
1. Re: Annotating KernelDeployment with management info
starksm64 Sep 23, 2007 3:02 PM (in response to starksm64)The Boolean isScoped method of KernelDeployment needs to be changed to getScoped due to the previously discussed issue of Boolean isX not being the getter for Boolean property x.
-
2. Re: Annotating KernelDeployment with management info
alesj Sep 23, 2007 5:09 PM (in response to starksm64)I'll have a look at it, perhaps it can be changed to plain boolean. Can't remember the reason now why I put it to full Boolean. ;-)
-
3. Re: Annotating KernelDeployment with management info
starksm64 Sep 23, 2007 8:50 PM (in response to starksm64)I already changed the method to getScoped.
-
4. Re: Annotating KernelDeployment with management info
starksm64 Sep 23, 2007 10:04 PM (in response to starksm64)I checked in just enough changes to allow the default AbstractManagedObjectFactory to build a ManagedObject set for a KernelDeployment.
In reality the BeanDeployer should be implementing the ManagedObjectCreator.build method as the deployer has the metadata and understands things like annotation overrides. Its not clear to me that the BeanInfo beanInfo = configuration.getBeanInfo(clazz) call used by the AbstractManagedObjectFactory is going to have the beans.xml annotations/overrides applied. Would it? -
5. Re: Annotating KernelDeployment with management info
adrian.brock Sep 24, 2007 5:05 AM (in response to starksm64)"scott.stark@jboss.org" wrote:
I checked in just enough changes to allow the default AbstractManagedObjectFactory to build a ManagedObject set for a KernelDeployment.
In reality the BeanDeployer should be implementing the ManagedObjectCreator.build method as the deployer has the metadata and understands things like annotation overrides. Its not clear to me that the BeanInfo beanInfo = configuration.getBeanInfo(clazz) call used by the AbstractManagedObjectFactory is going to have the beans.xml annotations/overrides applied. Would it?
No. -
6. Re: Annotating KernelDeployment with management info
alesj Sep 24, 2007 8:20 AM (in response to starksm64)The overrides only come after the bean's classloader is resolved - which is in PreInstall state.
See KernelScopeInfo.addMetaData, which gets invoked withKernelMetaDataRepository repository = controller.getKernel().getMetaDataRepository(); repository.addMetaData(context);
in PreInstallAction class.
That's where annotations from xml get into metadata repo.