Skip to content

Commit

Permalink
Sorting AS4 profiles by name for nicer logging
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Oct 24, 2024
1 parent 78acbe7 commit 7e8cdce
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import com.helger.commons.ValueEnforcer;
import com.helger.commons.annotation.ReturnsMutableCopy;
import com.helger.commons.collection.impl.CommonsHashMap;
import com.helger.commons.collection.impl.CommonsTreeMap;
import com.helger.commons.collection.impl.ICommonsList;
import com.helger.commons.collection.impl.ICommonsMap;
import com.helger.commons.concurrent.SimpleReadWriteLock;
Expand All @@ -48,7 +48,7 @@ public class AS4ProfileManager implements IAS4ProfileManager

private final SimpleReadWriteLock m_aRWLock = new SimpleReadWriteLock ();
@GuardedBy ("m_aRWLock")
private final ICommonsMap <String, IAS4Profile> m_aProfiles = new CommonsHashMap <> ();
private final ICommonsMap <String, IAS4Profile> m_aProfiles = new CommonsTreeMap <> ();

private void _registerAll ()
{
Expand All @@ -62,7 +62,9 @@ private void _registerAll ()
if (nCount == 0)
LOGGER.warn ("No AS4 profile is registered. This is most likely a configuration problem. Please make sure that at least one of the 'phase4-profile-*' modules is on the classpath.");
else
LOGGER.info ((nCount == 1 ? "1 AS4 profile is registered " : nCount + " AS4 profiles are registered"));
LOGGER.info ((nCount == 1 ? "1 AS4 profile is registered " : nCount + " AS4 profiles are registered") +
": " +
m_aProfiles.keySet ());
}

public AS4ProfileManager ()
Expand Down

0 comments on commit 7e8cdce

Please sign in to comment.