Package de.xima.fc.utils
Class ProcessingUtils
- java.lang.Object
-
- de.xima.fc.utils.ProcessingUtils
-
public class ProcessingUtils extends Object
Manager-Instance for all registered and availableIProcessing
-Implementations- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description ProcessingUtils()
-
Method Summary
-
-
-
Method Detail
-
registerProcessing
public static void registerProcessing(Class<? extends IProcessing> processing) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
Registers anIProcessing
system-wide by using his key (seeIProcessing.getProcessingKey()
). Already used keys will override the current registered processing!- Parameters:
processing
-IProcessing
-Class to register- Throws:
InstantiationException
- if an error occurs while instantiate the processing for reading the processing-keyIllegalAccessException
- if an error occurs while instantiate the processing for reading the processing-keySecurityException
- on errorsNoSuchMethodException
- on errorsInvocationTargetException
- on errorsIllegalArgumentException
- on errors
-
registerProcessing
public static void registerProcessing(Mandant man, Class<? extends IProcessing> processing) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
Registers anIProcessing
for the specified client wide by using his key (seeIProcessing.getProcessingKey()
). Already used keys will override the current registered processing! If the client isnull
, the processing will be registeres usingregisterProcessing(Class)
.- Parameters:
processing
-IProcessing
-Class to registerman
-Mandant
to register the processing for- Throws:
InstantiationException
- if an error occurs while instantiate the processing for reading the processing-keyIllegalAccessException
- if an error occurs while instantiate the processing for reading the processing-keySecurityException
- on errorsNoSuchMethodException
- on errorsInvocationTargetException
- on errorsIllegalArgumentException
- on errors
-
getProcessingClass
public static Class<? extends IProcessing> getProcessingClass(String key)
-
getProcessingClass
public static Class<? extends IProcessing> getProcessingClass(String key, Mandant man)
-
getAvailableProcessings
public static Map<String,Class<? extends IProcessing>> getAvailableProcessings()
-
getAvailableProcessings
public static Map<String,Class<? extends IProcessing>> getAvailableProcessings(Mandant man)
-
getEmptyProcessing
public static IProcessing getEmptyProcessing(String key, Mandant man)
-
loadParameters
public static <T extends IProcessing> T loadParameters(VerarbeitungsParameterMap params, T processing)
-
extractParameters
public static <T extends IProcessing> VerarbeitungsParameterMap extractParameters(T processing)
-
readParameter
public static VerarbeitungsParameterMap readParameter(String verarbeitungsParameter)
-
writeParameter
public static String writeParameter(VerarbeitungsParameterMap saveParameter)
-
-