Class FactoryFinder.StandaloneObjectFactory

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object create​(java.lang.String path)
      Creates the requested factory instance.
      static java.lang.Class<?> loadClass​(java.util.Properties properties)  
      static java.util.Properties loadProperties​(java.lang.String uri)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StandaloneObjectFactory

        protected StandaloneObjectFactory()
    • Method Detail

      • create

        public java.lang.Object create​(java.lang.String path)
                                throws java.lang.InstantiationException,
                                       java.lang.IllegalAccessException,
                                       java.lang.ClassNotFoundException,
                                       java.io.IOException,
                                       ResourceNotFoundException,
                                       java.lang.IllegalArgumentException,
                                       java.lang.reflect.InvocationTargetException,
                                       java.lang.NoSuchMethodException,
                                       java.lang.SecurityException
        Description copied from interface: FactoryFinder.ObjectFactory
        Creates the requested factory instance.
        Specified by:
        create in interface FactoryFinder.ObjectFactory
        Parameters:
        path - the full service path
        Returns:
        instance of the factory object being searched for.
        Throws:
        java.lang.InstantiationException - if the factory object fails on create.
        java.lang.IllegalAccessException - if an error occurs while accessing the search path.
        java.lang.ClassNotFoundException - if the class that is to be loaded cannot be found.
        java.io.IOException - if the search encounter an IO error.
        ResourceNotFoundException - if the path does not exist.
        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.
        java.lang.IllegalArgumentException
      • loadClass

        public static java.lang.Class<?> loadClass​(java.util.Properties properties)
                                            throws java.lang.ClassNotFoundException,
                                                   java.io.IOException
        Throws:
        java.lang.ClassNotFoundException
        java.io.IOException