Class DiManagerServiceFactory
java.lang.Object
com.gigaspaces.internal.services.ServiceFactory
com.gigaspaces.internal.services.SpringBootServiceFactory
com.gigaspaces.internal.services.DiManagerServiceFactory
ServiceFactory implementation that launches the DI-Manager as an embedded Spring Boot
application inside an isolated classloader. Unlike
McpServiceFactory and
RestV3ServiceFactory's jars (always built as part of the same xap-dist release),
DI-Manager is developed and released from its own separate repository and only integrated into
a distribution after the fact (see xap-dist's integrateDiManager Maven profile) - so the
boot jar's location defaults to the same XapModules-based self-resolving path, but can be
overridden via the "com.gs.di-manager.jar" system property to point at a jar from a
different build entirely, decoupling which DI-Manager release a given XAP distribution runs from
XapModules' own fixed path.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]Arguments passed to Spring Boot'sLauncher.launch(String[]); empty by default.protected PathPath to this service's own Spring Boot fat jar.protected voidinitializeClasspath(ClasspathBuilder classpath) protected org.slf4j.Loggerlogger()Logger used for the "service terminated" message on shutdown.protected ClassLoaderParent classloader for this service'sChildFirstURLClassLoader.Methods inherited from class SpringBootServiceFactory
createService, getServiceClassNameMethods inherited from class ServiceFactory
startService, toString
-
Constructor Details
-
DiManagerServiceFactory
public DiManagerServiceFactory()
-
-
Method Details
-
getServiceName
- Specified by:
getServiceNamein classServiceFactory
-
logger
protected org.slf4j.Logger logger()Description copied from class:SpringBootServiceFactoryLogger used for the "service terminated" message on shutdown.- Specified by:
loggerin classSpringBootServiceFactory
-
getBootJarPath
Description copied from class:SpringBootServiceFactoryPath to this service's own Spring Boot fat jar.- Specified by:
getBootJarPathin classSpringBootServiceFactory
-
initializeClasspath
- Overrides:
initializeClasspathin classSpringBootServiceFactory
-
parentClassLoader
Description copied from class:SpringBootServiceFactoryParent classloader for this service'sChildFirstURLClassLoader. Defaults to the sharedSpringBootClassLoadersingleton (PIC-6253), so the shared library layer's classes resolve via ordinary parent-first delegation. A service whose own fat jar bundles its complete stack and gets no benefit from that layer may override this to returnClassLoader.getSystemClassLoader()instead for full isolation from the shared layer - seeDiManagerServiceFactory's own override for the tradeoffs this carries (logging-system auto-detection in particular).- Overrides:
parentClassLoaderin classSpringBootServiceFactory
-
buildLaunchArgs
Description copied from class:SpringBootServiceFactoryArguments passed to Spring Boot'sLauncher.launch(String[]); empty by default.- Overrides:
buildLaunchArgsin classSpringBootServiceFactory
-