org.ops4j.pax.wicket.api
Class NoBeanAvailableForInjectionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
NoBeanAvailableForInjectionException()
           
NoBeanAvailableForInjectionException(String message)
           
NoBeanAvailableForInjectionException(String message, Throwable cause)
           
NoBeanAvailableForInjectionException(Throwable cause)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.