org.alfresco.jcr.util
Class JCRProxyFactory

java.lang.Object
  extended by org.alfresco.jcr.util.JCRProxyFactory

public class JCRProxyFactory
extends java.lang.Object

Factory for creating a JCR Session Context Proxy The Session Context Proxy is responsible for ensuring that the appropriate Alfresco Repository context is setup when a method is executed within a JCR session. For example, the appropriate authenticated user is validated.


Constructor Summary
JCRProxyFactory()
           
 
Method Summary
static java.lang.Object create(java.lang.Object target, java.lang.Class proxyInterface, SessionImpl context)
          Create a Session Context Proxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCRProxyFactory

public JCRProxyFactory()
Method Detail

create

public static java.lang.Object create(java.lang.Object target,
                                      java.lang.Class proxyInterface,
                                      SessionImpl context)
Create a Session Context Proxy

Parameters:
target - target object to wrap
proxyInterface - the proxy interface to export
context - the session context
Returns:
the proxied target


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.