public abstract class MessageDisplayUtils extends Object
Respects normal Roo conventions such as all resources should appear under the same package as the bundle itself etc.
Constructor and Description |
---|
MessageDisplayUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
displayFile(String fileName,
Class<?> owner)
Same as
displayFile(String, Class, boolean) except it passes false as the
final argument. |
static void |
displayFile(String fileName,
Class<?> owner,
boolean important)
Displays the requested file via the LOGGER API.
|
public static void displayFile(String fileName, Class<?> owner, boolean important)
Each file must available from the classloader of the "owner". It must also be in the same package as the class of the "owner". So if the owner is com.foo.Bar, and the file is called "hello.txt", the file must appear in the same bundle as com.foo.Bar and be available from the resource path "/com/foo/Hello.txt".
fileName
- the simple filename (required)owner
- the class which owns the file (required)important
- if true, it will display with a higher importance color where possiblepublic static void displayFile(String fileName, Class<?> owner)
displayFile(String, Class, boolean)
except it passes false as the
final argument.fileName
- the simple filename (required)owner
- the class which owns the file (required)