[jboss-user] [Microcontainer] - Re: Install from Annotations

2009-06-24 Thread gurkanerdogdu
Hi; Is there any class responsible for creating BeanMetaData class from annotated bean ? AFAIK, there is a BeanMetaDataBuilder class, but you have to set all of its parameters. Example : @Bean(name=person) class Person(){} BeanMetaData metaData = MetaDataBuilder.parseClass(Person.class);

[jboss-user] [Microcontainer] - Re: Install from Annotations

2009-06-24 Thread alesj
You are already using it, see your first post. ;-) - AnnotationToBeanMetaDataFactory Then it's up to the annotation plugins how they treat found annotations. By default BasicBeanMetaDataAnnotationAdapter already has a bunch of them pre-configured. But you can easily add your own, or

[jboss-user] [Microcontainer] - Re: Install from Annotations

2009-06-24 Thread gurkanerdogdu
alesj wrote : You are already using it, see your first post. ;-) | - AnnotationToBeanMetaDataFactory | I am totally lost my way in APIs, SPIs, Plugins :) Thanks; View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4239677#4239677 Reply to the post :

[jboss-user] [Microcontainer] - Re: Install from Annotations

2009-06-23 Thread alesj
The matching annotation plugin is missing usage of this name: | public class BeanAnnotationPlugin extends ClassAnnotationPluginBean | { |public static final BeanAnnotationPlugin INSTANCE = new BeanAnnotationPlugin(); | |protected BeanAnnotationPlugin() |{ |

[jboss-user] [Microcontainer] - Re: Install from Annotations

2009-06-23 Thread alesj
gurkanerdogdu wrote : | Actually my question is that, is there any discovery process/class to discover annotated bean classes without configuring XML at boot time? Yes. Check the Deployers project. It's has @Bean auto-discovery as a test case. View the original post :

[jboss-user] [Microcontainer] - Re: Install from Annotations

2009-06-23 Thread gurkanerdogdu
thanks for answer. But if I do not mind to use -beans.xml, is it required to implement new plugin and register it ? Is there any other way ? Actually my question is that, is there any discovery process/class to discover annotated bean classes without configuring XML at boot time? View the

[jboss-user] [Microcontainer] - Re: Install from Annotations

2009-06-23 Thread alesj
alesj wrote : gurkanerdogdu wrote : | | Actually my question is that, is there any discovery process/class to discover annotated bean classes without configuring XML at boot time? | Yes. | Check the Deployers project. | It's has @Bean auto-discovery as a test case.

[jboss-user] [Microcontainer] - Re: Install from Annotations

2009-06-23 Thread gurkanerdogdu
BeanDeployer class gets DeploymentUnit class as an input parameter. I just want is that when there is an empty *-beans.xml file in the standalone project's META-INF folder, its configured kernel collects all of annotated classes from classpath and register them with registry. View the

[jboss-user] [Microcontainer] - Re: Install from Annotations

2009-06-23 Thread alesj
BeanDeployer != BeanScanningDeployer ;-) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4239451#4239451 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4239451 ___ jboss-user mailing

[jboss-user] [Microcontainer] - Re: Install from Annotations

2009-06-23 Thread gurkanerdogdu
alesj wrote : BeanDeployer != BeanScanningDeployer ;-) Upps, I mean BeanScanningDeployer Thanks; View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4239452#4239452 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4239452