Class InitializationTaskWrapper
java.lang.Object
tools.mdsd.library.standalone.initialization.impl.InitializationTaskWrapper
- All Implemented Interfaces:
InitializationTask
- Direct Known Subclasses:
ProjectURIByClasspathRegistration
,ProjectURIByLocationRegistration
Wrapper for an
InitializationTask
that delegates all publicly available calls to the
wrapped task.-
Constructor Summary
ConstructorDescriptionInitializationTaskWrapper
(InitializationTask delegate) Constructs the wrapper with the task to delegate to. -
Method Summary
Modifier and TypeMethodDescriptionprotected InitializationTask
Tries to find and return theInitializationTask
to which we want to delegate.void
Performs an initialization if running inside of Eclipse.void
Performs an initialization if running outside of Eclipse.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tools.mdsd.library.standalone.initialization.InitializationTask
init, isPlatformRunning
-
Constructor Details
-
InitializationTaskWrapper
Constructs the wrapper with the task to delegate to.- Parameters:
delegate
- The task to delegate to.
-
-
Method Details
-
initilizationWithoutPlatform
Description copied from interface:InitializationTask
Performs an initialization if running outside of Eclipse.- Specified by:
initilizationWithoutPlatform
in interfaceInitializationTask
- Throws:
StandaloneInitializationException
- In case of an error during the initialization.
-
initializationWithPlatform
Description copied from interface:InitializationTask
Performs an initialization if running inside of Eclipse.- Specified by:
initializationWithPlatform
in interfaceInitializationTask
- Throws:
StandaloneInitializationException
- In case of an error during the initialization.
-
getDelegate
Tries to find and return theInitializationTask
to which we want to delegate.- Returns:
- The delegation target.
- Throws:
StandaloneInitializationException
- if the delegate could not be found.
-