Module java.xml.ws

Class FactoryFinder

java.lang.Object
javax.xml.ws.spi.FactoryFinder

class FactoryFinder extends Object
  • Field Details

  • Constructor Details

    • FactoryFinder

      FactoryFinder()
  • Method Details

    • find

      static <T> T find(Class<T> factoryClass, String fallbackClassName)
      Finds the implementation Class object for the given factory name, or if that fails, finds the Class object for the given fallback class name. The arguments supplied MUST be used in order. If using the first argument is successful, the second one will not be used.

      This method is package private so that this code can be shared.

      Parameters:
      factoryClass - the name of the factory to find, which is a system property
      fallbackClassName - the implementation class name, which is to be used only if nothing else is found; null to indicate that there is no fallback class name
      Returns:
      the Class object of the specified message factory; may not be null
      Throws:
      WebServiceException - if there is an error
    • fromSystemProperty

      private static Object fromSystemProperty(String factoryId, String fallbackClassName, ClassLoader classLoader)
    • fromJDKProperties

      private static Object fromJDKProperties(String factoryId, String fallbackClassName, ClassLoader classLoader)
    • isOsgi

      private static boolean isOsgi()
    • lookupUsingOSGiServiceLoader

      private static Object lookupUsingOSGiServiceLoader(String factoryId)