@Test public void removeCorrespondingKeys() { Properties p = new Properties(); p.setProperty(ResourceProfile.KEY_PREFIX + "abc", "resource"); p.setProperty(SessionProfile.KEY_PREFIX + "abc", "session"); ResourceProfile.removeCorrespondingKeys(p); Properties answer = new Properties(); answer.setProperty(SessionProfile.KEY_PREFIX + "abc", "session"); assertThat(p, is(answer)); }
public static void removeCorrespondingKeys(Properties properties) { if (properties == null) { throw new IllegalArgumentException("properties must not be null"); } PropertiesUtil.removeKeyPrefix(properties, KEY_PREFIX); }
ResourceProfile extends BaseProfile<ResourceProfile, ResourceProvider> { public static void removeCorrespondingKeys(Properties properties) { if (properties == null) { throw new IllegalArgumentException("properties must not be null"); } PropertiesUtil.removeKeyPrefix(properties, KEY_PREFIX); } }
ResourceProfile extends BaseProfile<ResourceProfile, ResourceProvider> { public static void removeCorrespondingKeys(Properties properties) { if (properties == null) { throw new IllegalArgumentException("properties must not be null"); } PropertiesUtil.removeKeyPrefix(properties, KEY_PREFIX); } ResourceProfile(
            String name,
            Class<? extends ResourceProvider> providerClass,
            ProfileContext context,
            Map<String, String> configuration); }
ResourceProfile extends BaseProfile<ResourceProfile, ResourceProvider> { public static void removeCorrespondingKeys(Properties properties) { if (properties == null) { throw new IllegalArgumentException("properties must not be null"); } PropertiesUtil.removeKeyPrefix(properties, KEY_PREFIX); } ResourceProfile(
            String name,
            Class<? extends ResourceProvider> providerClass,
            ProfileContext context,
            Map<String, String> configuration); String getName(); @Override Class<? extends ResourceProvider> getProviderClass(); @Override ProfileContext getContext(); Map<String, String> getConfiguration(); @Deprecated static Collection<? extends ResourceProfile> loadFrom(Properties properties, ClassLoader loader); static Collection<? extends ResourceProfile> loadFrom(Properties properties, ProfileContext context); void storeTo(Properties properties); static void removeCorrespondingKeys(Properties properties); }
ResourceProfile extends BaseProfile<ResourceProfile, ResourceProvider> { public static void removeCorrespondingKeys(Properties properties) { if (properties == null) { throw new IllegalArgumentException("properties must not be null"); } PropertiesUtil.removeKeyPrefix(properties, KEY_PREFIX); } ResourceProfile(
            String name,
            Class<? extends ResourceProvider> providerClass,
            ProfileContext context,
            Map<String, String> configuration); String getName(); @Override Class<? extends ResourceProvider> getProviderClass(); @Override ProfileContext getContext(); Map<String, String> getConfiguration(); @Deprecated static Collection<? extends ResourceProfile> loadFrom(Properties properties, ClassLoader loader); static Collection<? extends ResourceProfile> loadFrom(Properties properties, ProfileContext context); void storeTo(Properties properties); static void removeCorrespondingKeys(Properties properties); static final Pattern NAME_PATTERN; static final String KEY_PREFIX; }