throw SessionLoaderException.serverPlatformNoLongerSupported(serverClassName);
/** * INTERNAL: Build the appropriate server platform */ protected ServerPlatform buildServerPlatformConfig(ServerPlatformConfig platformConfig, DatabaseSessionImpl session) { if (platformConfig == null) { return new NoServerPlatform(session); } // Build the server platform, the config model knows which to build. ServerPlatform platform; if (platformConfig instanceof CustomServerPlatformConfig) { platform = buildCustomServerPlatformConfig((CustomServerPlatformConfig)platformConfig, session); } else { // A supported platform so instantiate an object of its type. String serverClassName = platformConfig.getServerClassName(); if (platformConfig.isSupported()) { platform = ServerPlatformUtils.createServerPlatform(session, serverClassName, m_classLoader); } else { throw SessionLoaderException.serverPlatformNoLongerSupported(serverClassName); } } // Process the common elements in ServerPlatformConfig processServerPlatformConfig(platformConfig, platform); return platform; }
/** * INTERNAL: Build the appropriate server platform */ protected ServerPlatform buildServerPlatformConfig(ServerPlatformConfig platformConfig, DatabaseSessionImpl session) { if (platformConfig == null) { return new NoServerPlatform(session); } // Build the server platform, the config model knows which to build. ServerPlatform platform; if (platformConfig instanceof CustomServerPlatformConfig) { platform = buildCustomServerPlatformConfig((CustomServerPlatformConfig)platformConfig, session); } else { // A supported platform so instantiate an object of its type. String serverClassName = platformConfig.getServerClassName(); if (platformConfig.isSupported()) { platform = ServerPlatformUtils.createServerPlatform(session, serverClassName, m_classLoader); } else { throw SessionLoaderException.serverPlatformNoLongerSupported(serverClassName); } } // Process the common elements in ServerPlatformConfig processServerPlatformConfig(platformConfig, platform); return platform; }