Package org.opensaml.core.config
Class InitializationService
- java.lang.Object
-
- org.opensaml.core.config.InitializationService
-
public class InitializationService extends Object
Service which initializes OpenSAML library modules using the Java Services API.See also
Initializer.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedInitializationService()Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static org.slf4j.LoggergetLogger()Get a logger.private static ServiceLoader<Initializer>getServiceLoader()Obtain the service loader instance used in the initialization process.static voidinitialize()Initialize all the registered library modules.
-
-
-
Method Detail
-
initialize
public static void initialize() throws InitializationExceptionInitialize all the registered library modules.- Throws:
InitializationException- if initialization did not complete successfully
-
getServiceLoader
private static ServiceLoader<Initializer> getServiceLoader()
Obtain the service loader instance used in the initialization process.- Returns:
- the service loader instance to use
-
getLogger
@Nonnull private static org.slf4j.Logger getLogger()
Get a logger.- Returns:
- an SLF4J logger instance
-
-