Skip to content

Commit

Permalink
[JBWS-3960] Improve stack version log
Browse files Browse the repository at this point in the history
  • Loading branch information
asoldano committed Dec 1, 2015
1 parent 437440a commit 4c9b2fa
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.security.AccessController;
import java.security.PrivilegedAction;

import org.apache.cxf.Bus;
import org.apache.wss4j.common.crypto.WSProviderConfig;
import org.jboss.wsf.spi.classloading.ClassLoaderProvider;
import org.jboss.wsf.spi.management.StackConfig;
Expand Down Expand Up @@ -71,14 +72,23 @@ public CXFStackConfig()
}
}

//hack the 2 methods below to make the logs show something like
// "JBossWS 5.1.1.Final (Apache CXF 3.1.4)"

public String getImplementationTitle()
{
return getClass().getPackage().getImplementationTitle();
StringBuilder sb = new StringBuilder();
sb.append("JBossWS ");
sb.append(getClass().getPackage().getImplementationVersion());
sb.append(" (Apache CXF ");
sb.append(Bus.class.getPackage().getImplementationVersion());
sb.append(")");
return sb.toString();
}

public String getImplementationVersion()
{
return getClass().getPackage().getImplementationVersion();
return "";
}

/**
Expand Down

0 comments on commit 4c9b2fa

Please sign in to comment.