Class FactoryDiscoveryUtils

    • Method Detail

      • getFactoryByIdentifier

        @Nonnull
        public static <T extends Factory> T getFactoryByIdentifier​(String identifier,
                                                                   Class<T> factoryClass)
        Returns the Factory for the given identifier.
      • getJarPathByIdentifier

        public static <T extends Factory> Optional<URL> getJarPathByIdentifier​(T factory)
        Return the path of the jar file that contains the Factory for the given identifier.