/** * Loads a YAESS profile from the specified properties. * @param properties source properties * @param classLoader the class loader to load the service class * @return the loaded profile * @throws IllegalArgumentException if the target profile is invalid, or parameters contain {@code null} * @deprecated use {@link #load(Properties, ProfileContext)} instead */ @Deprecated public static YaessProfile load(Properties properties, ClassLoader classLoader) { if (properties == null) { throw new IllegalArgumentException("properties must not be null"); //$NON-NLS-1$ } if (classLoader == null) { throw new IllegalArgumentException("classLoader must not be null"); //$NON-NLS-1$ } return load(properties, ProfileContext.system(classLoader)); }
throw new IllegalArgumentException("classLoader must not be null"); //$NON-NLS-1$ return load(properties, prefix, serviceBaseClass, ProfileContext.system(classLoader));