public boolean handles(BootstrapProperties bsProps) { // See GLASSFISH-16743 for the reason behind additional check final String builderName = bsProps.getProperty(Constants.BUILDER_NAME_PROPERTY); if (builderName != null && !builderName.equals(getClass().getName())) { return false; } String platform = bsProps.getProperty(Constants.PLATFORM_PROPERTY_KEY); return platform == null || Constants.Platform.Static.toString().equalsIgnoreCase(platform); }
public boolean handles(BootstrapProperties bsProps) { // See GLASSFISH-16743 for the reason behind additional check final String builderName = bsProps.getProperty(Constants.BUILDER_NAME_PROPERTY); if (builderName != null && !builderName.equals(getClass().getName())) { return false; } String platform = bsProps.getProperty(Constants.PLATFORM_PROPERTY_KEY); return platform == null || Constants.Platform.Static.toString().equalsIgnoreCase(platform); }
public boolean handles(BootstrapProperties bsProps) { // See GLASSFISH-16743 for the reason behind additional check final String builderName = bsProps.getProperty(Constants.BUILDER_NAME_PROPERTY); if (builderName != null && !builderName.equals(getClass().getName())) { return false; } /* * This builder can't handle GOSGi platform, because we read framework configuration from a framework * specific file in MainHelper.buildStartupContext(properties); */ String platformStr = bsProps.getProperty(Constants.PLATFORM_PROPERTY_KEY); if (platformStr != null && platformStr.trim().length() != 0) { try { Constants.Platform platform = Constants.Platform.valueOf(platformStr); switch (platform) { case Felix: case Equinox: case Knopflerfish: return true; } } catch (IllegalArgumentException ex) { // might be a plugged-in custom platform. } } return false; }
public boolean handles(BootstrapProperties bsProps) { // See GLASSFISH-16743 for the reason behind additional check final String builderName = bsProps.getProperty(Constants.BUILDER_NAME_PROPERTY); if (builderName != null && !builderName.equals(getClass().getName())) { return false; } /* * This builder can't handle GOSGi platform, because we read framework configuration from a framework * specific file in MainHelper.buildStartupContext(properties); */ String platformStr = bsProps.getProperty(Constants.PLATFORM_PROPERTY_KEY); if (platformStr != null && platformStr.trim().length() != 0) { try { Constants.Platform platform = Constants.Platform.valueOf(platformStr); switch (platform) { case Felix: case Equinox: case Knopflerfish: return true; } } catch (IllegalArgumentException ex) { // might be a plugged-in custom platform. } } return false; }