aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <>
Subject [jira] [Created] (ARIES-1306) Support @Produces annotation for blueprint-maven-plugin
Date Tue, 17 Mar 2015 10:54:38 GMT
Christian Schneider created ARIES-1306:

             Summary: Support @Produces annotation for blueprint-maven-plugin
                 Key: ARIES-1306
             Project: Aries
          Issue Type: Improvement
          Components: Blueprint
    Affects Versions: blueprint-maven-plugin-1.1.0
            Reporter: Christian Schneider
            Assignee: Christian Schneider

In blueprint we can create beans using a factory-ref and factory-method.
In JEE the same is done using the @Produces anntation on a factory.

So we should support the @Produces annotation in the blueprint-maven-plugin and translate
it into the generation of two beans.

The code below should result in the xml below:

public class MyFactoryBean {

    public MyProduced create() {
        return new MyProduced("My message");

public class MyProduced {
    private String message;

    public MyProduced(String message) {
        this.message = message;
    public String getMessage() {
        return message;

<bean id="myFactoryBean" class="org.apache.aries.blueprint.plugin.test.MyFactoryBean" ext:field-injection="true">

<bean id="myProduced" class="org.apache.aries.blueprint.plugin.test.MyProduced" ext:field-injection="true"
factory-ref="myFactoryBean" factory-method="create">

This message was sent by Atlassian JIRA

View raw message