Documentation of 'org.freehep.util.Factory' Java class
Factory
org.freehep.util

Class Factory



  • public class Factory
    extends java.lang.Object
    Methods to use factories (a la JAXP).
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String findFactory(java.lang.String factoryName, java.lang.String factoryFile, java.lang.String defaultFactory)
      Find the correct factory name, based on the following procedure: Use the specified system property: factoryName.
      static java.lang.Object loadFactory(java.lang.String name, java.lang.String file, java.lang.String defaultImplementation) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • findFactory

        public static java.lang.String findFactory(java.lang.String factoryName,
                                                   java.lang.String factoryFile,
                                                   java.lang.String defaultFactory)
        Find the correct factory name, based on the following procedure:
        1. Use the specified system property: factoryName.
        2. Use the specified property file in JAVA_HOME/lib/ and the specified property: factoryName.
        3. Use the Services API (as detailed in the JAR specification) to look for the classname in META-INF/services/.
        4. Use the specfied default factory: defaultFactory.
        Parameters:
        factoryName - name to be used for lookup
        factoryFile - filename to look for in JAVA_HOME/lib
        defaultFactory - name of the default factory
        Returns:
        the name of the factory according to the procedure above
      • loadFactory

        public static java.lang.Object loadFactory(java.lang.String name,
                                                   java.lang.String file,
                                                   java.lang.String defaultImplementation)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.