org.apache.wicket.authorization
Class UnauthorizedInstantiationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.wicket.WicketRuntimeException
                  extended by org.apache.wicket.authorization.AuthorizationException
                      extended by org.apache.wicket.authorization.UnauthorizedInstantiationException
All Implemented Interfaces:
Serializable

public class UnauthorizedInstantiationException
extends AuthorizationException

Exception that is thrown when the creation of a component is not allowed.

Author:
Eelco Hillenius, Jonathan Locke
See Also:
Serialized Form

Constructor Summary
UnauthorizedInstantiationException(Class<T> componentClass)
          Construct.
 
Method Summary
 Class<? extends Component> getComponentClass()
           
 
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

UnauthorizedInstantiationException

public UnauthorizedInstantiationException(Class<T> componentClass)
Construct.

Type Parameters:
T - The component type.
Parameters:
componentClass - The unauthorized component class
Method Detail

getComponentClass

public Class<? extends Component> getComponentClass()
Returns:
The component class that could not be instantiated


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.