Class StartupInfo
java.lang.Object
de.uni_hildesheim.sse.easy.loader.StartupInfo
Stores startup information about a certain class.
- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStartupInfo(InitType type, String className) Creates a startup information object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the qualified class name of the startup unit.getType()Returns the type of the startup unit.booleanstart(boolean verbose, ClassLoader loader) Starts up the associated class according to the startup type.booleanstop(boolean verbose, ClassLoader loader) Stops the associated class according to the shutdown type.toString()
-
Field Details
-
type
-
className
-
-
Constructor Details
-
StartupInfo
Creates a startup information object.- Parameters:
type- the startup / shutdown typeclassName- the class to be started / stopped
-
-
Method Details
-
getType
Returns the type of the startup unit.- Returns:
- the type
-
getClassName
Returns the qualified class name of the startup unit.- Returns:
- the class name
-
start
Starts up the associated class according to the startup type.- Parameters:
verbose-truefor verbose output,falseelseloader- the class loader to use- Returns:
truein case of success,falseelse
-
stop
Stops the associated class according to the shutdown type.- Parameters:
verbose-truefor verbose output,falseelseloader- the class loader to use- Returns:
truein case of success,falseelse
-
toString
-