[
https://issues.jboss.org/browse/CDI-14?page=com.atlassian.jira.plugin.sys...
]
Arne Limburg commented on CDI-14:
---------------------------------
We even could go a step further and provide an interface to the application developer
without the need of a bean-manager.
What about adding the following class to the spec:
{noformat}
public class ObjectInstance implements Instance<Object> {
private Instance<Object> delegate;
public ObjectInstance() {
//lookup bean-manager via JNDI,
//get Instance<Object> from bean-manager
//and set delegate
}
//methods are delegated to the delegate
}
{noformat}
Every CDI-user could instantiate this class and use it to get contextual instances.
Add instance() method to BeanManager
------------------------------------
Key: CDI-14
URL:
https://issues.jboss.org/browse/CDI-14
Project: CDI Specification Issues
Issue Type: Feature Request
Components: Resolution
Affects Versions: 1.0
Reporter: Pete Muir
Fix For: 1.1 (Proposed)
Currently obtaining a contextual reference is quite a complex operation, adding a method
like:
Instance<Object> instance();
would make it much easier.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira