Package org.apache.jackrabbit.rmi.server

Examples of org.apache.jackrabbit.rmi.server.ServerAdapterFactory


    // only used to enforce linking upon Class.forName()
    static String FactoryClassName = ServerAdapterFactory.class.getName();

    public Remote createRemoteRepository(Repository repository)
            throws RemoteException {
        return new ServerAdapterFactory().getRemoteRepository(repository);
    }
View Full Code Here


     * the Jackrabbit API over RMI. Extensions of this class may overwrite this
     * method to return a different implementation to provide different JCR
     * extension API depending on the server implementation.
     */
    protected RemoteAdapterFactory getRemoteAdapterFactory() {
        return new ServerAdapterFactory();
    }
View Full Code Here

    // only used to enforce linking upon Class.forName()
    static String FactoryClassName = ServerAdapterFactory.class.getName();

    public Remote createRemoteRepository(Repository repository)
            throws RemoteException {
        return new ServerAdapterFactory().getRemoteRepository(repository);
    }
View Full Code Here

        // only used to enforce linking upon Class.forName()
        static String FactoryClassName = ServerAdapterFactory.class.getName();

        public Remote createRemoteRepository(Repository repository)
                throws RemoteException {
            return new ServerAdapterFactory().getRemoteRepository(repository);
        }
View Full Code Here

     *
     * @param iface adapter interface
     * @throws Exception on errors
     */
    private void prepareTests(Class iface) throws Exception {
        remoteFactory = new ServerAdapterFactory();
        localFactory = new ClientAdapterFactory();

        methods = new HashMap();
        Method[] m = iface.getDeclaredMethods();
        for (int i = 0; i < m.length; i++) {
View Full Code Here

            initContent();
            initDynamicMountPoints();

            if (rmibind != null) {
                try {
                    Naming.rebind(rmibind, new ServerAdapterFactory().getRemoteRepository(repo));
                } catch (MalformedURLException e) {
                } catch (RemoteException e) {
                }
            }
View Full Code Here

        if (repo == null) {
            if (repositoryName != null) {
                repo = getRepositoryByJNDI();
                if (rmibind != null) {
                    try {
                        Naming.rebind(rmibind, new ServerAdapterFactory().getRemoteRepository(repo));
                    } catch (MalformedURLException e) {
                    } catch (RemoteException e) {
                    }
                }
                return repo;
View Full Code Here

                if (repo == null) {
                    accessControlManager = new VFSAccessControlManager(readOnly);
                    repo = new VFSRepositoryImpl(root, accessControlManager);
                    if (rmibind != null) {
                        try {
                            Naming.rebind(rmibind, new ServerAdapterFactory().getRemoteRepository(repo));
                        } catch (Exception e) {
                            logger.warn("Unable to bind remote JCR repository to RMI using "
                                    + rmibind, e);
                        }
                    }
View Full Code Here

     *
     * @param iface adapter interface
     * @throws Exception on errors
     */
    private void prepareTests(Class iface) throws Exception {
        remoteFactory = new ServerAdapterFactory();
        localFactory = new ClientAdapterFactory();

        methods = new HashMap();
        Method[] m = iface.getDeclaredMethods();
        for (int i = 0; i < m.length; i++) {
View Full Code Here

    // only used to enforce linking upon Class.forName()
    static String FactoryClassName = ServerAdapterFactory.class.getName();

    public Remote createRemoteRepository(Repository repository)
            throws RemoteException {
        return new ServerAdapterFactory().getRemoteRepository(repository);
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.rmi.server.ServerAdapterFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.