Class SpringBootSharedLibraries
java.lang.Object
com.gigaspaces.classloader.SpringBootSharedLibraries
Canonical helper for services that consume the shared Spring Boot library layer (the same
content
SpringBootClassLoader loads) via a classpath STRING rather than a literal
ClassLoader object - i.e. services launched as a separate OS process (the Auth server;
see com.gigaspaces.internal.services.AuthServiceFactory), where a Java
ClassLoader instance cannot cross the process boundary (PIC-6253).
Also the single source of truth for the lib/optional/security jar-exclusion filter,
previously duplicated (with a comment explaining the manual-sync requirement) between
AuthServiceFactory (xap-core) and GsPremiumCommandFactory.appendRestV3ExternalSecurityClasspath()
(xap-premium, for REST V3's system-classpath construction) - since xap-premium already depends
on xap-core, hosting it here lets both call the same method instead of hand-keeping two copies
in sync.
-
Field Summary
FieldsModifier and TypeFieldDescriptionMatches the platform jars thatlib/optional/securityships alongside a customer's own custom security classes (spring-security-config/-web, xap-security, xap-token-service-client) - excluded because the consuming fat jar already bundles its own copies of these, and a second copy on an ancestor loader risks winning cross-loader linkage unpredictably (seeRestV3ServiceFactory's andChildFirstURLClassLoader's Javadoc for the failure modes this avoids). -
Method Summary
Modifier and TypeMethodDescriptionstatic StringloaderPath(boolean includeSecurityJars) Comma-joined absolute jar paths (Spring BootPropertiesLauncher's-Dloader.pathformat) of the shared directory (SpringBootClassLoader's own content) plusLIB_REQUIRED_JARS, pluslib/optional/xap-openspaces(seeGsPremiumCommandFactory.appendSpringBootExternalCoreClasspath()'s identical addition for MCP/REST V3/GraphQL - xap-openspaces's own GraalVM JS runtime dependencies), pluslib/platform/zookeeper(org.openspaces:xap-zookeeper and its Curator/ZooKeeper/Netty runtime deps - the same directory GSC/GSM/MCP/REST V3/GraphQL already use), plus the filteredlib/optional/securityjars whenincludeSecurityJarsis true.
-
Field Details
-
SECURITY_JAR_FILTER
Matches the platform jars thatlib/optional/securityships alongside a customer's own custom security classes (spring-security-config/-web, xap-security, xap-token-service-client) - excluded because the consuming fat jar already bundles its own copies of these, and a second copy on an ancestor loader risks winning cross-loader linkage unpredictably (seeRestV3ServiceFactory's andChildFirstURLClassLoader's Javadoc for the failure modes this avoids).
-
-
Method Details
-
loaderPath
Comma-joined absolute jar paths (Spring BootPropertiesLauncher's-Dloader.pathformat) of the shared directory (SpringBootClassLoader's own content) plusLIB_REQUIRED_JARS, pluslib/optional/xap-openspaces(seeGsPremiumCommandFactory.appendSpringBootExternalCoreClasspath()'s identical addition for MCP/REST V3/GraphQL - xap-openspaces's own GraalVM JS runtime dependencies), pluslib/platform/zookeeper(org.openspaces:xap-zookeeper and its Curator/ZooKeeper/Netty runtime deps - the same directory GSC/GSM/MCP/REST V3/GraphQL already use), plus the filteredlib/optional/securityjars whenincludeSecurityJarsis true. The shared-directory/lib/required/xap-openspaces/zookeeper parts are unconditional - a service's fat jar may have its shared dependencies excluded regardless of whether Spring Security/LDAP is configured. Returnsnullif the result would be empty.
-