Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractMessageSource Members

AbstractMessageSource overview

Public Instance Properties

ParentMessageSource The parent message source used to try and resolve messages that this object can't resolve.
UseCodeAsDefaultMessageGets or Sets a value indicating whether to use the message code as default message instead of throwing a NoSuchMessageException. Useful for development and debugging. Default is "false".

Public Instance Methods

ApplyResources Applies resources to object properties.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetMessageOverloaded. Resolve the message identified by the supplied name.
GetResourceObjectOverloaded. Gets a localized resource object identified by the supplied name.
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Constructors

AbstractMessageSource Constructor Initializes this instance.

Protected Instance Fields

log holds the logger instance shared with subclasses.

Protected Instance Methods

ApplyResourcesInternal Applies resources from the given name on the specified object.
ApplyResourcesToObject Applies resources to object properties.
Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
FormatMessage Format the given default message String resolving any agrument placeholders found in them.
GetDefaultMessage Return a fallback default message for the given code, if any.
GetMessageFromParent Try to retrieve the given message from the parent MessageSource, if any.
GetMessageInternalResolve the given code and arguments as message in the given culture, returning null if not found. Does not fall back to the code as default message. Invoked by GetMessage methods.
GetResourceInternal Gets the specified resource (e.g. Icon or Bitmap).
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
RenderDefaultMessage Renders the default message string. The default message is passed in as specified by the caller and can be rendered into a fully formatted default message shown to the user.
ResolveArguments Search through the given array of objects, find any MessageSourceResolvable objects and resolve them.
ResolveMessage Subclasses must implement this method to resolve a message.
ResolveObject Resolves an object (typically an icon or bitmap).

See Also

AbstractMessageSource Class | Spring.Context.Support Namespace | IMessageSourceResolvable | IMessageSource | IHierarchicalMessageSource