Interface FactoryFinder.ObjectFactory

    • Method Detail

      • create

        java.lang.Object create​(java.lang.String path)
                         throws java.lang.IllegalAccessException,
                                java.lang.InstantiationException,
                                java.io.IOException,
                                java.lang.ClassNotFoundException,
                                ResourceNotFoundException,
                                java.lang.NoSuchMethodException,
                                java.lang.SecurityException,
                                java.lang.reflect.InvocationTargetException
        Creates the requested factory instance.
        Parameters:
        path - the full service path
        Returns:
        instance of the factory object being searched for.
        Throws:
        java.lang.IllegalAccessException - if an error occurs while accessing the search path.
        java.lang.InstantiationException - if the factory object fails on create.
        ResourceNotFoundException - if the path does not exist.
        java.io.IOException - if the search encounter an IO error.
        java.lang.ClassNotFoundException - if the class that is to be loaded cannot be found.
        java.lang.reflect.InvocationTargetException - if the constructor of the found factory throws an exception
        java.lang.NoSuchMethodException - if the factory class found does not have a suitable constructor
        java.lang.SecurityException - if a security error occurs trying to create the factory instance.