[infinispan-issues] [JBoss JIRA] (ISPN-7351) Support @Named in CDI extension

Seto Kaiba (JIRA) issues at jboss.org
Mon Jan 23 21:02:00 EST 2017


    [ https://issues.jboss.org/browse/ISPN-7351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13347234#comment-13347234 ] 

Seto Kaiba edited comment on ISPN-7351 at 1/23/17 9:01 PM:
-----------------------------------------------------------

Maybe extends @ConfigureCache("name-cache") as @Qualifier would be great. Just a small suggest. I mean the code as below.

{code:java}
    @ConfigureCache("name-cache")
    @Produces
    public Configuration nameCacheConfig() {
        ConfigurationBuilder builder = new ConfigurationBuilder();
        builder.storeAsBinary().enable();
        return builder.build();
    }


    @Inject
    @ConfigureCache("name-cache")
    Cache<String, String> nameCache;
{code}



was (Author: seto):
Maybe extends @ConfigureCache("name-cache") as @Qualifier would be great.
Just a small suggest.
I mean the code as below.

{code:java}
    @ConfigureCache("name-cache")
    @Produces
    public Configuration nameCacheConfig() {
        ConfigurationBuilder builder = new ConfigurationBuilder();
        builder.storeAsBinary().enable();
        return builder.build();
    }


    @Inject
    @ConfigureCache("name-cache")
    Cache<String, String> nameCache;
{code}


> Support @Named in CDI extension
> -------------------------------
>
>                 Key: ISPN-7351
>                 URL: https://issues.jboss.org/browse/ISPN-7351
>             Project: Infinispan
>          Issue Type: Feature Request
>          Components: CDI Integration
>            Reporter: Sebastian Łaskawiec
>            Assignee: Sebastian Łaskawiec
>
> Currently our users have to create lots and lots of {{@Qualifier}} type of annotations. It would be desirable to support {{@Named("driver")}} type of annotations.
> Useful links:
> * {{@Named}} Javadoc: http://docs.oracle.com/javaee/6/api/javax/inject/Named.html



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the infinispan-issues mailing list