@Test(expected = IllegalArgumentException.class) public void testProfilePlaceholderResolverWithCycle() { Profile profile = ProfileBuilder.Factory.create("test") .addConfiguration("pid1", "foo", "b${profile:pid2/bar}") .addConfiguration("pid2", "bar", "a${rep}") .addConfiguration("pid2", "rep", "h${profile:pid1/foo}") .getProfile(); Profile effective = Profiles.getEffective(profile); effective.getConfiguration("pid1").get("foo"); }
public static Profile getEffective(final Profile profile) { return getEffective(profile, true); }
Profiles { public static Profile getEffective(final Profile profile) { return getEffective(profile, true); } }
Profiles { public static Profile getEffective(final Profile profile) { return getEffective(profile, true); } private  Profiles(); }
Profiles { public static Profile getEffective(final Profile profile) { return getEffective(profile, true); } private  Profiles(); static Map<String, Profile> loadProfiles(final Path root); static void deleteProfile(Path root, String id); static void writeProfile(Path root, Profile profile); static Profile getOverlay(Profile profile, Map<String, Profile> profiles); static Profile getOverlay(Profile profile, Map<String, Profile> profiles, String environment); static Profile getEffective(final Profile profile); static Profile getEffective(final Profile profile, boolean finalSubstitution); static Profile getEffective(final Profile profile,
                                       final Collection<PlaceholderResolver> resolvers); static Profile getEffective(final Profile profile,
                                       final Collection<PlaceholderResolver> resolvers,
                                       boolean finalSubstitution); }
Profiles { public static Profile getEffective(final Profile profile) { return getEffective(profile, true); } private  Profiles(); static Map<String, Profile> loadProfiles(final Path root); static void deleteProfile(Path root, String id); static void writeProfile(Path root, Profile profile); static Profile getOverlay(Profile profile, Map<String, Profile> profiles); static Profile getOverlay(Profile profile, Map<String, Profile> profiles, String environment); static Profile getEffective(final Profile profile); static Profile getEffective(final Profile profile, boolean finalSubstitution); static Profile getEffective(final Profile profile,
                                       final Collection<PlaceholderResolver> resolvers); static Profile getEffective(final Profile profile,
                                       final Collection<PlaceholderResolver> resolvers,
                                       boolean finalSubstitution); static final String PROFILE_FOLDER_SUFFIX; }