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);
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
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 :
The matching annotation plugin is missing usage of this name:
| public class BeanAnnotationPlugin extends ClassAnnotationPluginBean
| {
|public static final BeanAnnotationPlugin INSTANCE = new
BeanAnnotationPlugin();
|
|protected BeanAnnotationPlugin()
|{
|
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 :
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
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.
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
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
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
10 matches
Mail list logo