X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=server%2Fruntime%2Forg.argeo.server.jcr%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fjcr%2FThreadBoundJcrSessionFactory.java;h=193f22c48c99780e72af4c70a7956cab8ed07370;hb=cd50e3711d3b86921f11d9e021fc6a43bef0d400;hp=4c8ee90105155bc21393a755cbb73744c38c398c;hpb=0f82096aecc32f674336405cb52f7796ed29d23c;p=lgpl%2Fargeo-commons.git diff --git a/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/ThreadBoundJcrSessionFactory.java b/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/ThreadBoundJcrSessionFactory.java index 4c8ee9010..193f22c48 100644 --- a/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/ThreadBoundJcrSessionFactory.java +++ b/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/ThreadBoundJcrSessionFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Mathieu Baudier + * Copyright (C) 2007-2012 Argeo GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.argeo.jcr; import java.lang.reflect.InvocationHandler; @@ -66,9 +65,9 @@ public abstract class ThreadBoundJcrSessionFactory { public ThreadBoundJcrSessionFactory() { Class[] interfaces = { Session.class }; - proxiedSession = (Session) Proxy.newProxyInstance(getClass() - .getClassLoader(), interfaces, - new JcrSessionInvocationHandler()); + proxiedSession = (Session) Proxy.newProxyInstance( + ThreadBoundJcrSessionFactory.class.getClassLoader(), + interfaces, new JcrSessionInvocationHandler()); } /** Logs in to the repository using various strategies. */