Class FactoryFinder


  • public class FactoryFinder
    extends java.lang.Object
    • Constructor Detail

      • FactoryFinder

        public FactoryFinder​(java.lang.String path)
    • Method Detail

      • newInstance

        public java.lang.Object newInstance​(java.lang.String key)
                                     throws java.lang.IllegalAccessException,
                                            java.lang.InstantiationException,
                                            java.io.IOException,
                                            java.lang.ClassNotFoundException
        Creates a new instance of the given key
        Parameters:
        key - is the key to add to the path to find a text file containing the factory name
        Returns:
        a newly created instance
        Throws:
        java.lang.IllegalAccessException - On illegal access
        java.lang.InstantiationException - On can not instantiate exception
        java.io.IOException - On IOException
        java.lang.ClassNotFoundException - When class not on class path