|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.rmi.client.ClientRepositoryFactory
Object factory for JCR-RMI clients. This factory can be used either directly or as a JNDI object factory.
ClientRepository
Field Summary | |
static String |
URL_PARAMETER
The JNDI parameter name for configuring the RMI URL of a remote repository. |
Constructor Summary | |
ClientRepositoryFactory()
Creates a JCR-RMI client factory with the default adapter factory. |
|
ClientRepositoryFactory(LocalAdapterFactory factory)
Creates a JCR-RMI client factory with the given adapter factory. |
Method Summary | |
Object |
getObjectInstance(Object object,
Name name,
Context context,
Hashtable environment)
JNDI factory method for creating JCR-RMI clients. |
Repository |
getRepository(String url)
Returns a client wrapper for a remote content repository. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String URL_PARAMETER
Constructor Detail |
public ClientRepositoryFactory()
public ClientRepositoryFactory(LocalAdapterFactory factory)
factory
- local adapter factoryMethod Detail |
public Repository getRepository(String url) throws ClassCastException, MalformedURLException, NotBoundException, RemoteException
ClientRepository
adapter.
url
- the RMI URL of the remote repository
ClassCastException
- if the URL points to an unknown object
MalformedURLException
- if the URL is malformed
NotBoundException
- if the URL points to nowhere
RemoteException
- on RMI errorspublic Object getObjectInstance(Object object, Name name, Context context, Hashtable environment) throws NamingException
getObjectInstance
in interface ObjectFactory
object
- reference parametersname
- unusedcontext
- unusedenvironment
- unused
NamingException
- on all errors
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |