Class InitializationTaskWrapper
- java.lang.Object
-
- tools.mdsd.library.standalone.initialization.impl.InitializationTaskWrapper
-
- All Implemented Interfaces:
InitializationTask
- Direct Known Subclasses:
ProjectURIByClasspathRegistration
,ProjectURIByLocationRegistration
public class InitializationTaskWrapper extends Object implements InitializationTask
Wrapper for anInitializationTask
that delegates all publicly available calls to the wrapped task.
-
-
Constructor Summary
Constructors Constructor Description InitializationTaskWrapper(InitializationTask delegate)
Constructs the wrapper with the task to delegate to.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InitializationTask
getDelegate()
Tries to find and return theInitializationTask
to which we want to delegate.void
initializationWithPlatform()
Performs an initialization if running inside of Eclipse.void
initilizationWithoutPlatform()
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 Detail
-
InitializationTaskWrapper
public InitializationTaskWrapper(InitializationTask delegate)
Constructs the wrapper with the task to delegate to.- Parameters:
delegate
- The task to delegate to.
-
-
Method Detail
-
initilizationWithoutPlatform
public void initilizationWithoutPlatform() throws StandaloneInitializationException
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
public void initializationWithPlatform() throws StandaloneInitializationException
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
protected InitializationTask getDelegate() throws StandaloneInitializationException
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.
-
-