org.apache.jackrabbit.rmi.jackrabbit
Class JackrabbitClientAdapterFactory

java.lang.Object
  extended by org.apache.jackrabbit.rmi.client.ClientAdapterFactory
      extended by org.apache.jackrabbit.rmi.jackrabbit.JackrabbitClientAdapterFactory
All Implemented Interfaces:
LocalAdapterFactory

public class JackrabbitClientAdapterFactory
extends ClientAdapterFactory

Jackrabbit-specific LocalAdapterFactory. This factory extends the default ClientAdapterFactory implementation with adapter classes that implement the Jackrabbit API extension interfaces. The implementation degrades gracefully when used with other repositories.


Constructor Summary
JackrabbitClientAdapterFactory()
           
 
Method Summary
 NodeTypeManager getNodeTypeManager(RemoteNodeTypeManager remote)
          Returns a JackrabbitNodeTypeManager adapter if given a RemoteJackrabbitNodeTypeManager reference.
 Workspace getWorkspace(Session session, RemoteWorkspace remote)
          Returns a JackrabbitWorkspace adapter if given a RemoteJackrabbitWorkspace reference.
 
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientAdapterFactory
getItem, getItemDef, getLock, getNamespaceRegistry, getNode, getNodeDef, getNodeIterator, getNodeType, getNodeTypeIterator, getObservationManager, getProperty, getPropertyDef, getPropertyIterator, getQuery, getQueryManager, getQueryResult, getRepository, getRow, getRowIterator, getSession, getVersion, getVersionHistory, getVersionIterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JackrabbitClientAdapterFactory

public JackrabbitClientAdapterFactory()
Method Detail

getNodeTypeManager

public NodeTypeManager getNodeTypeManager(RemoteNodeTypeManager remote)
Returns a JackrabbitNodeTypeManager adapter if given a RemoteJackrabbitNodeTypeManager reference. Alternatively falls back to the default adapter from the parent class.

Specified by:
getNodeTypeManager in interface LocalAdapterFactory
Overrides:
getNodeTypeManager in class ClientAdapterFactory
Parameters:
remote - remote node type manager
Returns:
adapted node type manager

getWorkspace

public Workspace getWorkspace(Session session,
                              RemoteWorkspace remote)
Returns a JackrabbitWorkspace adapter if given a RemoteJackrabbitWorkspace reference. Alternatively falls back to the default adapter from the parent class.

Specified by:
getWorkspace in interface LocalAdapterFactory
Overrides:
getWorkspace in class ClientAdapterFactory
Parameters:
remote - remote workspace
session - current session
Returns:
adapted workspace


Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.