de.unihalle.informatik.Alida.helpers
Class ALDClassInfo

java.lang.Object
  extended by de.unihalle.informatik.Alida.helpers.ALDClassInfo

public class ALDClassInfo
extends java.lang.Object

Author:
posch

Constructor Summary
ALDClassInfo()
           
 
Method Summary
static java.util.Set<java.lang.Class> lookupExtendingClasses(java.lang.Class cl)
          Collects all derived class of given class.
static java.util.Set<java.lang.String> lookupOperatorClassnames(ALDAOperator.Level level, ALDAOperator.ExecutionMode executionMode)
          Collects all ALDOperators annotated with the requested level and execution mode and all ALDOperators found in a package specified by a JVM property alida_oprunner_favoriteops or the environment variable ALIDA_OPRUNNER_OPERATORPATH as a colon separated list of package names.
static java.util.Collection<ALDOperatorLocation> lookupOperators(ALDAOperator.Level level, ALDAOperator.ExecutionMode executionMode)
          Collects all ALDOperators annotated with the requested level and execution mode and all ALDOperators found in a package specified by a JVM property alida_oprunner_favoriteops or the environment variable ALIDA_OPRUNNER_OPERATORPATH as a colon separated list of package names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ALDClassInfo

public ALDClassInfo()
Method Detail

lookupExtendingClasses

public static java.util.Set<java.lang.Class> lookupExtendingClasses(java.lang.Class cl)
Collects all derived class of given class.

The method searches for all derived classes of the given class among all classes annotated with @ALDDerivedClass that are found in the classpath. In this context derived classes are classes which either implement the specified interface or extend the given class.

Parameters:
cl - Class for which derived classes are requested.
Returns:
Set of extending classes including class itself.

lookupOperators

public static java.util.Collection<ALDOperatorLocation> lookupOperators(ALDAOperator.Level level,
                                                                        ALDAOperator.ExecutionMode executionMode)
Collects all ALDOperators annotated with the requested level and execution mode and all ALDOperators found in a package specified by a JVM property alida_oprunner_favoriteops or the environment variable ALIDA_OPRUNNER_OPERATORPATH as a colon separated list of package names.

If level is Level.APPLICATION then only operators with this level will be return. If level is Level.STANDARD all operator levels are accepted.

Parameters:
level - Class for which derived classes are requested.
Returns:
List of operator names with requested level and execution mode

lookupOperatorClassnames

public static java.util.Set<java.lang.String> lookupOperatorClassnames(ALDAOperator.Level level,
                                                                       ALDAOperator.ExecutionMode executionMode)
Collects all ALDOperators annotated with the requested level and execution mode and all ALDOperators found in a package specified by a JVM property alida_oprunner_favoriteops or the environment variable ALIDA_OPRUNNER_OPERATORPATH as a colon separated list of package names.

If level is Level.APPLICATION then only operators with this level will be return. If level is Level.STANDARD all operator levels are accepted.

Parameters:
level -
executionMode -
Returns:


Copyright © 2010-2014 Martin Luther University Halle-Wittenberg. All Rights Reserved.