|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.shell.support.logging.MessageDisplayUtils
public abstract class MessageDisplayUtils
Retrieves text files from the classloader and displays them on-screen.
Respects normal Roo conventions such as all resources should appear under the same package as the bundle itself etc.
Constructor Summary | |
---|---|
MessageDisplayUtils()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageDisplayUtils()
Method Detail |
---|
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |