public class AuthleteApiFactory extends Object
AuthleteApi instance.| Modifier and Type | Method and Description |
|---|---|
static AuthleteApi |
getInstance(AuthleteConfiguration configuration)
Create an instance of
AuthleteApi. |
static AuthleteApi |
getInstance(AuthleteConfiguration configuration,
String className)
Create an instance of
AuthleteApi from the specified class. |
public static AuthleteApi getInstance(AuthleteConfiguration configuration)
AuthleteApi.
This method repeats to call getInstance(AuthleteConfiguration, String)
until one of the known classes is successfully instantiated.
The classes listed below are the ones that the current implementation knows. (Currently, just one.)
com.authlete.client.jaxrs.api.AuthleteApiImplcom.authlete:authlete-java-client-jaxrs)
configuration - Authlete configuration.AuthleteApi. If none of the known classes
that implement AuthleteApi interface was successfully
instantiated, null is returned.public static AuthleteApi getInstance(AuthleteConfiguration configuration, String className)
AuthleteApi from the specified class.configuration - Authlete configuration.className - The name of a class that implements AuthleteApi
interface. The class must have a constructor which takes
one argument of type AuthleteConfiguration.IllegalArgumentException - configuration is null.
className is null.
AuthleteApi interface.
AuthleteConfiguration.
IllegalStateException - The constructor of the specified class threw an exception.Copyright © 2015. All rights reserved.