public class ContainerClassInfo extends Object implements MessageInfoProvider
Messages. Note that only static, non-null fields are
introspected.org.marketcetera.util.log| Constructor and Description |
|---|
ContainerClassInfo(Class<?> container)
Creates a new meta-information holder for the given message
container class.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMessage(I18NMessage message)
Adds the given message to the receiver's meta-information.
|
Class<?> |
getContainer()
Returns the receiver's container class.
|
List<MessageInfo> |
getMessageInfo()
Returns the receiver's meta-information.
|
I18NMessageProvider |
getProvider()
Returns the internationalized message provider declared in the
receiver's container class.
|
public ContainerClassInfo(Class<?> container) throws I18NException
container - The class.I18NException - Thrown if introspection of the given
class fails, or the class does not contain a message provider.protected void addMessage(I18NMessage message) throws I18NException
message - The message.I18NException - Thrown if addition of the message fails
due to the message having a different message provider than
other messages in the receiver's container class.public Class<?> getContainer()
public I18NMessageProvider getProvider()
public List<MessageInfo> getMessageInfo()
MessageInfoProvidergetMessageInfo in interface MessageInfoProviderCopyright © 2015. All Rights Reserved.