cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAY-1955) add support jsr-250 and jsr330 to DI
Date Fri, 12 Sep 2014 08:33:34 GMT

    [ https://issues.apache.org/jira/browse/CAY-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14131272#comment-14131272
] 

Andrus Adamchik commented on CAY-1955:
--------------------------------------

That's a pretty big change suggested. Would you mind starting a discussion on the dev list
to explain why would that be beneficial for Cayenne?

> add support jsr-250 and jsr330 to DI
> ------------------------------------
>
>                 Key: CAY-1955
>                 URL: https://issues.apache.org/jira/browse/CAY-1955
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>            Reporter: Friederich Christophe
>            Priority: Minor
>              Labels: patch
>
> h4. Add partial *JSR-250* lifecycle annotations support:
> * {{@PostConstruct}} is used on methods that need to get executed after dependency injection
is done to perform any initialization.
> * {{@PreDestroy}} is used on methods that are called before the instance is removed from
the container
> h4. Add partial *JSR-330* dependency injector annotations support
> * {{@Inject}} identifies injectable constructors, methods, and fields.
> * {{@Named}} type named.
> * {{@Provider<T>}} Provides instances of T.
> * {{@Scope}} Identifies scope annotations.
> * {{@Singleton}} Identifies a type that the injector only instantiates once.
> * {{-@Qualifier-}} not implemented.
> h4. Deprecate _org.apache.cayenne.di.Inject_ annotion and _org.apache.cayenne.di.Provider_
interface
> h4. add {{lazy}}/{{eager}} singleton instantiation
> - {{lazy}} is default implementation.
> - {{earger}} allows initializing singleton upon cayenne run-time started, exceptions
will occur at start-up time vs first be used and avoids any delay when the service provided
is requested the first time.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message