The matching annotation plugin is missing usage of this name:
| public class BeanAnnotationPlugin extends ClassAnnotationPlugin
| {
|public static final BeanAnnotationPlugin INSTANCE = new
BeanAnnotationPlugin();
|
|protected BeanAnnotationPlugin()
|{
| super(Bean
"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 :
http://www.jboss.org/i
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 ori
"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.
http://anonsvn.jb
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 original
BeanDeployer != BeanScanningDeployer ;-)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239451#4239451
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239451
___
jboss-user mai
"alesj" wrote : BeanDeployer != BeanScanningDeployer ;-)
Upps, I mean BeanScanningDeployer
Thanks;
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239452#4239452
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239452
___
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 override/rep
"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=bb&op=viewtopic&p=4239677#4239677
Reply to the post :
http:
10 matches
Mail list logo