Package com.appiancorp.suiteapi.cfg
Class ConfigurationLoader
java.lang.Object
com.appiancorp.suiteapi.cfg.ConfigurationLoader
Factory for returning an instance of Configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Configuration
Returns the first instance of the Configuration class found.static void
Deprecated.This method is needed to use the service APIs from a standalone application, which is no longer supported.static boolean
Deprecated.This method is needed to use the service APIs from a standalone application, which is no longer supported.
-
Constructor Details
-
ConfigurationLoader
public ConfigurationLoader()
-
-
Method Details
-
getConfiguration
Returns the first instance of the Configuration class found. Call this to get an instance that implements theConfiguration
interface and allows access to configuration property values.- Returns:
- the instance of Configuration
-
initializeConfigurations
Deprecated.This method is needed to use the service APIs from a standalone application, which is no longer supported.Initializes the configurations needed to use the service APIs from a standalone application. Typically, these configurations are initialized during the application server startup, however if you are writing a standalone application that does not run in the application server, you need to call this method to initialize the prerequisite configurations before making any calls to the services. You must have the _admin/_scripts/classpath.jar in your classpath, and must not change the product installation directory structure. -
isInitialized
Deprecated.This method is needed to use the service APIs from a standalone application, which is no longer supported.Returns true ifinitializeConfigurations
has been called, and false otherwise.
-