Package org.apache.jackrabbit.rmi.client
Class ClientRepositoryFactory
- java.lang.Object
-
- org.apache.jackrabbit.rmi.client.ClientRepositoryFactory
-
- All Implemented Interfaces:
ObjectFactory
@Deprecated public class ClientRepositoryFactory extends Object implements ObjectFactory
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Object factory for JCR-RMI clients. This factory can be used either directly or as a JNDI object factory.
- See Also:
ClientRepository
-
-
Field Summary
Fields Modifier and Type Field Description static StringURL_PARAMETERDeprecated.The JNDI parameter name for configuring the RMI URL of a remote repository.
-
Constructor Summary
Constructors Constructor Description ClientRepositoryFactory()Deprecated.Creates a JCR-RMI client factory with the default adapter factory.ClientRepositoryFactory(LocalAdapterFactory factory)Deprecated.Creates a JCR-RMI client factory with the given adapter factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ObjectgetObjectInstance(Object object, Name name, Context context, Hashtable environment)Deprecated.JNDI factory method for creating JCR-RMI clients.RepositorygetRepository(String url)Deprecated.Returns a client wrapper for a remote content repository.
-
-
-
Field Detail
-
URL_PARAMETER
public static final String URL_PARAMETER
Deprecated.The JNDI parameter name for configuring the RMI URL of a remote repository.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClientRepositoryFactory
public ClientRepositoryFactory()
Deprecated.Creates a JCR-RMI client factory with the default adapter factory.
-
ClientRepositoryFactory
public ClientRepositoryFactory(LocalAdapterFactory factory)
Deprecated.Creates a JCR-RMI client factory with the given adapter factory.- Parameters:
factory- local adapter factory
-
-
Method Detail
-
getRepository
public Repository getRepository(String url) throws MalformedURLException, NotBoundException, ClassCastException, RemoteException
Deprecated.Returns a client wrapper for a remote content repository. The remote repository is looked up from the RMI registry using the given URL by the returnedSafeClientRepositoryinstance.The current implementation of this method will not throw any of the declared exceptions (because of the
SafeClientRepositorybeing used), but the throws clauses are kept for backwards compatibility and potential future use. Clients should be prepared to handle exceptions from this method.- Parameters:
url- the RMI URL of the remote repository- Returns:
- repository client
- Throws:
MalformedURLException- if the given URL is malforedNotBoundException- if the given URL points to nothingClassCastException- if the given URL points to something unknownRemoteException- if the remote repository can not be accessed
-
getObjectInstance
public Object getObjectInstance(Object object, Name name, Context context, Hashtable environment)
Deprecated.JNDI factory method for creating JCR-RMI clients. Creates a lazy client repository instance that uses the reference parameter "url" as the RMI URL where the remote repository is looked up when accessed.- Specified by:
getObjectInstancein interfaceObjectFactory- Parameters:
object- reference parametersname- unusedcontext- unusedenvironment- unused- Returns:
- repository client
-
-