[webbeans-issues] [JBoss JIRA] Created: (WBRI-220) Manual Shutdown i nSE by Configuration
by Peter Royle (JIRA)
Manual Shutdown i nSE by Configuration
--------------------------------------
Key: WBRI-220
URL: https://jira.jboss.org/jira/browse/WBRI-220
Project: Web Beans
Issue Type: Feature Request
Environment: Java SE, w/o EJB
Reporter: Peter Royle
Priority: Minor
The developer could set a configuration variable to let WebBeans know that they will be taking responsibility for initiating the shutdown sequence when it makes sense for their app, and hence WebBeans needn't do any automatic shutdown sequence. This could be done programatically:
public void (@Observes Deployed Manager manager, @Parameters List<String> params, @Current Configuration config) {
config.setManualShutdown(true);
System.out.println("You provided " + params.size() + " parameters. Well done.");
}
Alternatively this could be done by setting a property in beans.xml or beans.properties.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 7 months
[webbeans-issues] [JBoss JIRA] Created: (WBRI-215) Manager.getInstanceToInject() does not throw an UnproxyableDependencyException for unproxyable bean types
by Shane Bryzak (JIRA)
Manager.getInstanceToInject() does not throw an UnproxyableDependencyException for unproxyable bean types
---------------------------------------------------------------------------------------------------------
Key: WBRI-215
URL: https://jira.jboss.org/jira/browse/WBRI-215
Project: Web Beans
Issue Type: Bug
Affects Versions: 1.0.0.BETA1
Reporter: Shane Bryzak
The spec states in section 5.7.1:
"Manager.getInstanceToInject() returns a contextual instance or client proxy to be injected to the given injection point.
The getInstanceToInject() method must:
<snip>
* If the bean has a normal scope and the type cannot be proxied by the container, as defined in Section 5.4.1,
"Unproxyable bean types", throw an UnproxyableDependencyException."
This exception is not being thrown for unproxyable bean types - see TCK test org.jboss.jsr299.tck.tests.lookup.dependency.resolution.DependencyResolutionTest, method testGetInstanceToInjectThrowsUnproxyableDependencyException().
Section 5.4.1 of the spec lists "classes without a non-private constructor with no parameters" as an unproxyable bean type.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 7 months