Interface ServiceFactory

    • Method Detail

      • create

        Service create​(Session session)
                throws java.io.IOException
        Throws:
        java.io.IOException
      • create

        static Service create​(java.util.Collection<? extends ServiceFactory> factories,
                              java.lang.String name,
                              Session session)
                       throws java.io.IOException
        Create an instance of the specified name by looking up the needed factory in the list (case insensitive.
        Parameters:
        factories - list of available factories
        name - the factory name to use
        session - the referenced Session
        Returns:
        a newly created object or null if the factory is not in the list
        Throws:
        java.io.IOException - if session creation failed
        See Also:
        create(Session)