On Java Development

All things related to Java development, from the perspective of a caveman.

Creating Class Level Messages

without comments

Introduction

This post presents a method for creating class-level messages. Granted, there are other approaches that could be cited however, this approach shows how long messages intended for logging purposes can be constructed. The messages are confined to the single class that will be responsible for sending them to the logger when the need arises.


Since the approach is straight forward, it is presented without much comment.

Class level message field declarations.

 
The class constructor method.

 
Using the messages is clean and simple.

Written by admin

October 22nd, 2014 at 6:34 am

Posted in Java Strings

Leave a Reply

You must be logged in to post a comment.