org.ops4j.pax.wicket.api
Class NoBeanAvailableForInjectionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ops4j.pax.wicket.api.NoBeanAvailableForInjectionException
- All Implemented Interfaces:
- Serializable
public class NoBeanAvailableForInjectionException
- extends RuntimeException
Since the PaxWicketInjector#onInstantiation(org.apache.wicket.Component)
method does not have a return value
we couldn't ask a service simply if it could find a bean to inject for a component to inject at all. Therefore we add
the notation to pax-wicket that every PaxWicketInjector#inject(Object)
method call can throw this
NoBeanAvailableForInjectionException
. Using this exception we can iterate over multible provider checking if
a bean is available.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
NoBeanAvailableForInjectionException
public NoBeanAvailableForInjectionException()
NoBeanAvailableForInjectionException
public NoBeanAvailableForInjectionException(String message,
Throwable cause)
NoBeanAvailableForInjectionException
public NoBeanAvailableForInjectionException(String message)
NoBeanAvailableForInjectionException
public NoBeanAvailableForInjectionException(Throwable cause)
Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.