Return-Path: X-Original-To: apmail-aries-dev-archive@www.apache.org Delivered-To: apmail-aries-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 414E410B03 for ; Fri, 4 Dec 2015 10:39:11 +0000 (UTC) Received: (qmail 97677 invoked by uid 500); 4 Dec 2015 10:39:11 -0000 Delivered-To: apmail-aries-dev-archive@aries.apache.org Received: (qmail 97632 invoked by uid 500); 4 Dec 2015 10:39:11 -0000 Mailing-List: contact dev-help@aries.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aries.apache.org Delivered-To: mailing list dev@aries.apache.org Received: (qmail 97601 invoked by uid 99); 4 Dec 2015 10:39:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2015 10:39:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EF5FA2C1F6B for ; Fri, 4 Dec 2015 10:39:10 +0000 (UTC) Date: Fri, 4 Dec 2015 10:39:10 +0000 (UTC) From: "Sam Wright (JIRA)" To: dev@aries.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ARIES-1464) Improve blueprint-maven-plugin: add prototype-scope support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ARIES-1464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Wright updated ARIES-1464: ------------------------------ Summary: Improve blueprint-maven-plugin: add prototype-scope support (was: Improve blueprint-maven-plugin: add @Scope support) > Improve blueprint-maven-plugin: add prototype-scope support > ----------------------------------------------------------- > > Key: ARIES-1464 > URL: https://issues.apache.org/jira/browse/ARIES-1464 > Project: Aries > Issue Type: Improvement > Components: Blueprint > Reporter: Sam Wright > Assignee: Christian Schneider > > -I propose adding support for configuring bean scope using blueprint-maven-plugin, e.g. annotating a class with `@Scope("prototype")` will add `scope = "prototype"` to the bean's xml element.- > The JSR-330 spec says that a class can be defined as a prototype-scoped bean by applying only the @Named annotation, and that to give the bean a singleton-scope the @Singleton annotation should then be applied (either with or replacing @Named), e.g. > {code} > @Singleton class AutonamedSingleton {} > @Singleton @Named("foo") class NamedSingleton {} > @Named AutonamedPrototype {} > @Named("bar") NamedPrototype {} > {code} > The pull request implements this. NB this maintains backwards-compatibility with classes annotated using @Singleton or @Component, with or without @Named. > [~chris@die-schneider.net] is probably the person to review this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)