Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
When @Inject(optional=true) is applied and the binding isn't available, wicket should skip the injection silently.
http://groups.google.com/group/google-guice/browse_thread/thread/2abe9b55ee26a198
To check whether the binding is available, you need to use a try/catch block:
try
catch (ConfigurationException e)
{ // the binding isn't available }