org.apache.jackrabbit.rmi.repository
Class JNDIRemoteRepositoryFactory

java.lang.Object
  extended by org.apache.jackrabbit.rmi.repository.AbstractRemoteRepositoryFactory
      extended by org.apache.jackrabbit.rmi.repository.JNDIRemoteRepositoryFactory

public class JNDIRemoteRepositoryFactory
extends AbstractRemoteRepositoryFactory

Factory that looks up a remote repository from JNDI.

Since:
1.4

Constructor Summary
JNDIRemoteRepositoryFactory(LocalAdapterFactory factory, Context context, String location)
          Creates a factory for looking up a remote repository from JNDI.
 
Method Summary
protected  RemoteRepository getRemoteRepository()
          Looks up a remote repository from JNDI.
 
Methods inherited from class org.apache.jackrabbit.rmi.repository.AbstractRemoteRepositoryFactory
getRepository
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDIRemoteRepositoryFactory

public JNDIRemoteRepositoryFactory(LocalAdapterFactory factory,
                                   Context context,
                                   String location)
Creates a factory for looking up a remote repository from JNDI.

Parameters:
factory - local adapter factory
context - JNDI context
location - JNDI location
Method Detail

getRemoteRepository

protected RemoteRepository getRemoteRepository()
                                        throws RepositoryException
Looks up a remote repository from JNDI.

Specified by:
getRemoteRepository in class AbstractRemoteRepositoryFactory
Returns:
remote repository reference
Throws:
RepositoryException - if the remote repository is not available


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