java - Inject cached instances using cdi -


I want to manage CDI applications by using an inline outline @ Inject Other examples should be given to these examples because their life cycle is based on different caching strategies.

Ex: The same example can be seen in the same thread scope, many requests remain in scope, the scope of the sessions does not apply. Do I need to set a new area to target such instances?

What is the best way to do this? An extension, is it possible with the manufacturer's methods?

I have to work together with the manufacturer method with:

  @Inject @CustomInject FwObject obj; @ Products @CustomInject FwObject createConfig (InjectionPoint p) {return (FwObject) ctx.get ((class   

But this should be clear about the type that is not possible because there is no general framework interface.

Any help appreciated.

may be with the creator's methods, all of your needs Depending on it, but perhaps one of the best ways to go an extension is if you need to go with a new scope (if you are using JSF, the scope of the conversation can work), then you definitely need to create an extension Will be required.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -