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'sOutputTranslationActionFactory
implementations.- Author:
- K. Benedyczak
-
-
Constructor Summary
Constructors Constructor Description AbstractOutputTranslationActionFactory(String name, ActionParameterDefinition... parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TranslationActionType
getActionType()
OutputTranslationAction
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 Detail
-
AbstractOutputTranslationActionFactory
public AbstractOutputTranslationActionFactory(String name, ActionParameterDefinition... parameters)
-
-
Method Detail
-
getActionType
public TranslationActionType getActionType()
- Specified by:
getActionType
in interfaceTranslationActionFactory<OutputTranslationAction>
- Returns:
- definition of an action created by this factory
-
getBlindInstance
public OutputTranslationAction getBlindInstance(String... parameters)
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:
-
-