Interface ObjectFactory

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      <T> T getInstance​(java.lang.Class<T> jaxRsClass)
      Deprecated.
      Creates an instance of the given class.
      If the concrete instance could not instantiate the given class, it could return null.
    • Method Detail

      • getInstance

        <T> T getInstance​(java.lang.Class<T> jaxRsClass)
                   throws InstantiateException
        Deprecated.
        Creates an instance of the given class.
        If the concrete instance could not instantiate the given class, it could return null. Than the constructor specified by the JAX-RS specification (section 4.2) is used.
        Type Parameters:
        T -
        Parameters:
        jaxRsClass - the root resource class or provider class.
        Returns:
        The created instance.
        Throws:
        InstantiateException