Package pulse.util

Class ReflexiveFinder


  • public class ReflexiveFinder
    extends Object
    Provides utility methods for finding classes and instances of Reflexive in a PULsE package.
    • Method Detail

      • classesIn

        public static List<Class<?>> classesIn​(String pckgname)
        Uses Java Reflection API to find all classes within the package named pckgname. Works well with .jar files.
        Parameters:
        pckgname - the name of the package.
        Returns:
        a list of Class objects.
      • simpleInstances

        public static <V extends ReflexiveList<V> simpleInstances​(String pckgname,
                                                                    Object... params)

        Finds simple instances of Reflexive subclasses within pckgname. A simple instance is either one that results from invoking a no-argument constructor or a getInstance() method.

        Type Parameters:
        V - a class implementing Reflexive
        Parameters:
        pckgname - the name of the package for the search
        Returns:
        a list of classes implementing Reflexive that are found in pckgname.
      • simpleInstances

        public static <V extends ReflexiveList<V> simpleInstances​(String pckgname)