|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grinder.util.AbstractMainClass
public abstract class AbstractMainClass
Basic functionality for a main class. Crudely extracted for now.
| Nested Class Summary | |
|---|---|
protected static class |
AbstractMainClass.LoggedInitialisationException
Exception indicating that an error message has already been logged. |
| Constructor Summary | |
|---|---|
protected |
AbstractMainClass(org.slf4j.Logger logger,
String usage)
Constructor. |
| Method Summary | |
|---|---|
protected AbstractMainClass.LoggedInitialisationException |
barfError(String message)
Log an error and return a AbstractMainClass.LoggedInitialisationException that
can be thrown. |
protected AbstractMainClass.LoggedInitialisationException |
barfUsage()
Log a usage message and return a AbstractMainClass.LoggedInitialisationException that
can be thrown. |
protected org.slf4j.Logger |
getLogger()
Return our logger. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractMainClass(org.slf4j.Logger logger,
String usage)
throws GrinderException
logger - Logger to which output should be directed.usage - Usage message.
GrinderException - If a problem occurred.| Method Detail |
|---|
protected final org.slf4j.Logger getLogger()
protected final AbstractMainClass.LoggedInitialisationException barfError(String message)
AbstractMainClass.LoggedInitialisationException that
can be thrown.
message - The message to throw.
protected final AbstractMainClass.LoggedInitialisationException barfUsage()
AbstractMainClass.LoggedInitialisationException that
can be thrown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||