Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2015-01-30 22:13:35 +0000
committerJoakim Erdfelt2015-03-12 17:09:52 +0000
commit87246263b8ae726a61cb9cef20f5d10c1c054458 (patch)
treed6a6c8950ca999e7a37470e824d233f9351ab264 /jetty-util
parente213c4488ea6ae83d440c5e53920be96187d860f (diff)
downloadorg.eclipse.jetty.project-87246263b8ae726a61cb9cef20f5d10c1c054458.tar.gz
org.eclipse.jetty.project-87246263b8ae726a61cb9cef20f5d10c1c054458.tar.xz
org.eclipse.jetty.project-87246263b8ae726a61cb9cef20f5d10c1c054458.zip
453834 - CDI Support for WebSocket
+ Verifying ServletContextHandler behavior of Decorators + Marking old ServletContextHandler methods as deprecated + Updates to DecoratedObjectFactory + Removing customized weld scopes/context (for now) + Deferring JSR356 ServerContainer endpoint init till Container.doStart() to allow weld to init properly first + Removing JSR356 BasicServerEndpointConfigurator in favor of ContainerDefaultEndpointConfigurator + Only decorating server endpoints if they were created by ContainerDefaultEndpointConfigurator, all others are trusted to be complete and injected already.
Diffstat (limited to 'jetty-util')
-rw-r--r--jetty-util/src/main/java/org/eclipse/jetty/util/DecoratedObjectFactory.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/DecoratedObjectFactory.java b/jetty-util/src/main/java/org/eclipse/jetty/util/DecoratedObjectFactory.java
index 5feb1c9e2b..f409d76066 100644
--- a/jetty-util/src/main/java/org/eclipse/jetty/util/DecoratedObjectFactory.java
+++ b/jetty-util/src/main/java/org/eclipse/jetty/util/DecoratedObjectFactory.java
@@ -62,7 +62,7 @@ public class DecoratedObjectFactory implements Iterable<Decorator>
{
if (LOG.isDebugEnabled())
{
- LOG.debug("Creating Instance: " + clazz,new Throwable("Creation Stack"));
+ LOG.debug("Creating Instance: " + clazz);
}
T o = clazz.newInstance();
return decorate(o);
@@ -106,4 +106,14 @@ public class DecoratedObjectFactory implements Iterable<Decorator>
this.decorators.addAll(decorators);
}
}
+
+ @Override
+ public String toString()
+ {
+ StringBuilder str = new StringBuilder();
+ str.append(this.getClass().getName()).append("[decorators=");
+ str.append(Integer.toString(decorators.size()));
+ str.append("]");
+ return str.toString();
+ }
}

Back to the top