public class BeanRegistrationException
extends org.smooks.api.SmooksException
Modifier and Type | Method and Description |
---|---|
static void |
throwBeanInstanceAlreadyRegisteredException(Object bean)
Throw a
BeanRegistrationException exception for the specified bean instance that
is already registered. |
static void |
throwBeanNotAnnotatedWithDefaultNamespace(Object bean)
Throw a
BeanRegistrationException exception for a bean that is not annotated with the
DefaultNamespace annotation. |
static void |
throwUnregisteredBeanInstanceException(Object bean)
Throw a
BeanRegistrationException exception for the specified "unregistered" bean instance. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static void throwUnregisteredBeanInstanceException(Object bean) throws BeanRegistrationException
BeanRegistrationException
exception for the specified "unregistered" bean instance.
This exception is thrown when one of the root bean instances for a namespace used within
a model doesn't have registered BeanMetadata
(via the Model.registerBean(Object)
).bean
- The unknown bean instance.BeanRegistrationException
- The exception.public static void throwBeanInstanceAlreadyRegisteredException(Object bean) throws BeanRegistrationException
BeanRegistrationException
exception for the specified bean instance that
is already registered.bean
- The bean instance.BeanRegistrationException
- The exception.public static void throwBeanNotAnnotatedWithDefaultNamespace(Object bean) throws BeanRegistrationException
BeanRegistrationException
exception for a bean that is not annotated with the
DefaultNamespace
annotation.
All namespace root bean types must be annotated with the DefaultNamespace
annotation.bean
- The bean instance.BeanRegistrationException
- The exception.Copyright © 2024. All rights reserved.