aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Wright (JIRA)" <>
Subject [jira] [Commented] (ARIES-1464) Improve blueprint-maven-plugin: add prototype-scope support
Date Fri, 11 Dec 2015 14:45:11 GMT


Sam Wright commented on ARIES-1464:

Fantastic, thanks for the speedy review!

Do you have any plans for when the next release will be? My company won't let me use a -SNAPSHOT
release of an external dependency but I'd really like to use this. Are there any other issues
you want to get in before the next release?

> Improve blueprint-maven-plugin: add prototype-scope support
> -----------------------------------------------------------
>                 Key: ARIES-1464
>                 URL:
>             Project: Aries
>          Issue Type: Improvement
>          Components: Blueprint
>            Reporter: Sam Wright
>            Assignee: Christian Schneider
>             Fix For: blueprint-maven-plugin-1.3.0
> -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.
> [] is probably the person to review this.

This message was sent by Atlassian JIRA

View raw message