Class AbstractOutputTranslationActionFactory
java.lang.Object
pl.edu.icm.unity.engine.translation.out.action.AbstractOutputTranslationActionFactory
- All Implemented Interfaces:
OutputTranslationActionFactory
,TranslationActionFactory<OutputTranslationAction>
- Direct Known Subclasses:
IncludeOutputProfileActionFactory
public abstract class AbstractOutputTranslationActionFactory
extends Object
implements OutputTranslationActionFactory
Boilerplate code for the output profile's
OutputTranslationActionFactory
implementations.- Author:
- K. Benedyczak
-
Constructor Summary
ConstructorDescriptionAbstractOutputTranslationActionFactory
(String name, pl.edu.icm.unity.base.translation.ActionParameterDefinition... parameters) -
Method Summary
Modifier and TypeMethodDescriptionpl.edu.icm.unity.base.translation.TranslationActionType
getBlindInstance
(String... parameters) Used when an exception is thrown by the baseTranslationActionFactory.getInstance(String...)
method.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface pl.edu.icm.unity.engine.api.translation.TranslationActionFactory
getInstance
-
Constructor Details
-
AbstractOutputTranslationActionFactory
public AbstractOutputTranslationActionFactory(String name, pl.edu.icm.unity.base.translation.ActionParameterDefinition... parameters)
-
-
Method Details
-
getActionType
public pl.edu.icm.unity.base.translation.TranslationActionType getActionType()- Specified by:
getActionType
in interfaceTranslationActionFactory<OutputTranslationAction>
- Returns:
- definition of an action created by this factory
-
getBlindInstance
Description copied from interface:TranslationActionFactory
Used when an exception is thrown by the baseTranslationActionFactory.getInstance(String...)
method. Must not throw any exception (naturally besidesError
;-)). The returned action should generally do nothing besides logging that it is a blind stopper of the real action.- Specified by:
getBlindInstance
in interfaceTranslationActionFactory<OutputTranslationAction>
- Returns:
-