org.apache.jackrabbit.rmi.jackrabbit
Class JackrabbitServerAdapterFactory

java.lang.Object
  extended by org.apache.jackrabbit.rmi.server.ServerAdapterFactory
      extended by org.apache.jackrabbit.rmi.jackrabbit.JackrabbitServerAdapterFactory
All Implemented Interfaces:
RemoteAdapterFactory

public class JackrabbitServerAdapterFactory
extends ServerAdapterFactory

Jackrabbit-specific RemoteAdapterFactory. This factory extends the default ServerAdapterFactory implementation with adapter classes that implement remote versions of the Jackrabbit API extension interfaces. The implementation degrades gracefully when used with other repositories.


Constructor Summary
JackrabbitServerAdapterFactory()
           
 
Method Summary
 RemoteNodeTypeManager getRemoteNodeTypeManager(NodeTypeManager manager)
          Returns a RemoteJackrabbitNodeTypeManager adapter if given a JackrabbitNodeTypeManager reference.
 RemoteWorkspace getRemoteWorkspace(Workspace workspace)
          Returns a RemoteJackrabbitWorkspace adapter if given a JackrabbitWorkspace reference.
 
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerAdapterFactory
getBufferSize, getRemoteEvent, getRemoteItem, getRemoteItemDefinition, getRemoteLock, getRemoteNamespaceRegistry, getRemoteNode, getRemoteNodeDefinition, getRemoteNodeIterator, getRemoteNodeType, getRemoteNodeTypeIterator, getRemoteObservationManager, getRemoteProperty, getRemotePropertyDefinition, getRemotePropertyIterator, getRemoteQuery, getRemoteQueryManager, getRemoteQueryResult, getRemoteRepository, getRemoteRow, getRemoteRowIterator, getRemoteSession, getRemoteVersion, getRemoteVersionHistory, getRemoteVersionIterator, getRemoteXAResource, optimizeIterator, setBufferSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JackrabbitServerAdapterFactory

public JackrabbitServerAdapterFactory()
Method Detail

getRemoteNodeTypeManager

public RemoteNodeTypeManager getRemoteNodeTypeManager(NodeTypeManager manager)
                                               throws RemoteException
Returns a RemoteJackrabbitNodeTypeManager adapter if given a JackrabbitNodeTypeManager reference. Alternatively falls back to the default adapter from the parent class.

Specified by:
getRemoteNodeTypeManager in interface RemoteAdapterFactory
Overrides:
getRemoteNodeTypeManager in class ServerAdapterFactory
Parameters:
manager - local node type manager
Returns:
remote node type manager
Throws:
RemoteException - if the remote adapter could not be created

getRemoteWorkspace

public RemoteWorkspace getRemoteWorkspace(Workspace workspace)
                                   throws RemoteException
Returns a RemoteJackrabbitWorkspace adapter if given a JackrabbitWorkspace reference. Alternatively falls back to the default adapter from the parent class.

Specified by:
getRemoteWorkspace in interface RemoteAdapterFactory
Overrides:
getRemoteWorkspace in class ServerAdapterFactory
Parameters:
workspace - local workspace
Returns:
remote node type manager
Throws:
RemoteException - if the remote adapter could not be created


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