Skip to content

Commit

Permalink
Better BeanManager.toString() message
Browse files Browse the repository at this point in the history
  • Loading branch information
jharting committed Apr 5, 2013
1 parent e7a5680 commit 71c3e99
Showing 1 changed file with 1 addition and 6 deletions.
Expand Up @@ -926,12 +926,7 @@ public ObserverNotifier getGlobalStrictObserverNotifier() {
*/
@Override
public String toString() {
StringBuilder buffer = new StringBuilder();
buffer.append("Manager\n");
buffer.append("Enabled alternatives: " + getEnabled().getAllAlternatives() + "\n");
buffer.append("Registered contexts: " + contexts.keySet() + "\n");
buffer.append("Registered beans: " + getBeans().size() + "\n");
return buffer.toString();
return "Weld BeanManager for " + getId() + " [bean count=" + getBeans().size() + "]";
}

@Override
Expand Down

0 comments on commit 71c3e99

Please sign in to comment.