jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r155780 - incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client
Date Tue, 01 Mar 2005 13:55:57 GMT
Author: jukka
Date: Tue Mar  1 05:55:53 2005
New Revision: 155780

URL: http://svn.apache.org/viewcvs?view=rev&rev=155780
Log:
Encapsulated ClientObject.factory with a getter method.

Modified:
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientItem.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientItemDef.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNode.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNodeDef.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNodeTypeManager.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientObject.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientProperty.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientQuery.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientQueryManager.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientQueryResult.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientRepository.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientSession.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientWorkspace.java

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientItem.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientItem.java?view=diff&r1=155779&r2=155780
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientItem.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientItem.java
Tue Mar  1 05:55:53 2005
@@ -110,7 +110,7 @@
     public Node getParent() throws ItemNotFoundException,
             AccessDeniedException, RepositoryException {
         try {
-            return factory.getNode(getSession(), remote.getParent());
+            return getFactory().getNode(getSession(), remote.getParent());
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientItemDef.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientItemDef.java?view=diff&r1=155779&r2=155780
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientItemDef.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientItemDef.java
Tue Mar  1 05:55:53 2005
@@ -56,7 +56,7 @@
     /** {@inheritDoc} */
     public NodeType getDeclaringNodeType() {
         try {
-            return factory.getNodeType(remote.getDeclaringNodeType());
+            return getFactory().getNodeType(remote.getDeclaringNodeType());
         } catch (RemoteException ex) {
             throw new RemoteRuntimeException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNode.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNode.java?view=diff&r1=155779&r2=155780
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNode.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNode.java
Tue Mar  1 05:55:53 2005
@@ -55,6 +55,7 @@
 import javax.jcr.version.VersionException;
 import javax.jcr.version.VersionHistory;
 
+import org.apache.jackrabbit.rmi.remote.RemoteLock;
 import org.apache.jackrabbit.rmi.remote.RemoteNode;
 import org.apache.jackrabbit.rmi.remote.RemoteProperty;
 import org.apache.jackrabbit.rmi.remote.SerialValue;
@@ -112,7 +113,7 @@
             PathNotFoundException, ConstraintViolationException,
             RepositoryException {
         try {
-            return factory.getNode(getSession(), remote.addNode(path));
+            return getFactory().getNode(getSession(), remote.addNode(path));
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -123,7 +124,8 @@
             PathNotFoundException, NoSuchNodeTypeException,
             ConstraintViolationException, RepositoryException {
         try {
-            return factory.getNode(getSession(), remote.addNode(path, type));
+            RemoteNode node = remote.addNode(path, type);
+            return getFactory().getNode(getSession(), node);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -147,7 +149,7 @@
         try {
             RemoteProperty property =
                 remote.setProperty(name, new SerialValue(value));
-            return factory.getProperty(getSession(), property);
+            return getFactory().getProperty(getSession(), property);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -159,7 +161,7 @@
         try {
             Value[] serials = SerialValue.makeSerialValueArray(values);
             RemoteProperty property = remote.setProperty(name, serials);
-            return factory.getProperty(getSession(), property);
+            return getFactory().getProperty(getSession(), property);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -221,7 +223,7 @@
     public Node getNode(String path) throws PathNotFoundException,
             RepositoryException {
         try {
-            return factory.getNode(getSession(), remote.getNode(path));
+            return getFactory().getNode(getSession(), remote.getNode(path));
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -249,7 +251,8 @@
     public Property getProperty(String path) throws PathNotFoundException,
             RepositoryException {
         try {
-            return factory.getProperty(getSession(), remote.getProperty(path));
+            RemoteProperty property = remote.getProperty(path);
+            return getFactory().getProperty(getSession(), property);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -343,7 +346,7 @@
     /** {@inheritDoc} */
     public NodeType getPrimaryNodeType() throws RepositoryException {
         try {
-            return factory.getNodeType(remote.getPrimaryNodeType());
+            return getFactory().getNodeType(remote.getPrimaryNodeType());
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -399,7 +402,7 @@
     /** {@inheritDoc} */
     public NodeDef getDefinition() throws RepositoryException {
         try {
-            return factory.getNodeDef(remote.getDefinition());
+            return getFactory().getNodeDef(remote.getDefinition());
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -541,7 +544,7 @@
         try {
             Value[] serials = SerialValue.makeSerialValueArray(values);
             RemoteProperty property = remote.setProperty(name, serials, type);
-            return factory.getProperty(getSession(), property);
+            return getFactory().getProperty(getSession(), property);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -578,7 +581,8 @@
             throws UnsupportedRepositoryOperationException, LockException,
             AccessDeniedException, RepositoryException {
         try {
-            return factory.getLock(this, remote.lock(isDeep, isSessionScoped));
+            RemoteLock lock = remote.lock(isDeep, isSessionScoped);
+            return getFactory().getLock(this, lock);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -588,7 +592,7 @@
     public Lock getLock() throws UnsupportedRepositoryOperationException,
             LockException, AccessDeniedException, RepositoryException {
         try {
-            return factory.getLock(this, remote.getLock());
+            return getFactory().getLock(this, remote.getLock());
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNodeDef.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNodeDef.java?view=diff&r1=155779&r2=155780
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNodeDef.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNodeDef.java
Tue Mar  1 05:55:53 2005
@@ -61,7 +61,7 @@
     /** {@inheritDoc} */
     public NodeType getDefaultPrimaryType() {
         try {
-            return factory.getNodeType(remote.getDefaultPrimaryType());
+            return getFactory().getNodeType(remote.getDefaultPrimaryType());
         } catch (RemoteException ex) {
             throw new RemoteRuntimeException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNodeTypeManager.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNodeTypeManager.java?view=diff&r1=155779&r2=155780
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNodeTypeManager.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNodeTypeManager.java
Tue Mar  1 05:55:53 2005
@@ -59,7 +59,7 @@
     public NodeType getNodeType(String name) throws NoSuchNodeTypeException,
             RepositoryException {
         try {
-            return factory.getNodeType(remote.getNodeType(name));
+            return getFactory().getNodeType(remote.getNodeType(name));
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientObject.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientObject.java?view=diff&r1=155779&r2=155780
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientObject.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientObject.java
Tue Mar  1 05:55:53 2005
@@ -48,7 +48,7 @@
 public class ClientObject {
 
     /** Local adapter factory. */
-    protected LocalAdapterFactory factory;
+    private LocalAdapterFactory factory;
 
     /**
      * Creates a basic client adapter that uses the given factory
@@ -58,6 +58,15 @@
      */
     protected ClientObject(LocalAdapterFactory factory) {
         this.factory = factory;
+    }
+
+    /**
+     * Returns the local adapter factory used to create new adapters.
+     *
+     * @return local adapter factory
+     */
+    protected LocalAdapterFactory getFactory() {
+        return factory;
     }
 
     /**

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientProperty.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientProperty.java?view=diff&r1=155779&r2=155780
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientProperty.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientProperty.java
Tue Mar  1 05:55:53 2005
@@ -302,7 +302,7 @@
     /** {@inheritDoc} */
     public PropertyDef getDefinition() throws RepositoryException {
         try {
-            return factory.getPropertyDef(remote.getDefinition());
+            return getFactory().getPropertyDef(remote.getDefinition());
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientQuery.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientQuery.java?view=diff&r1=155779&r2=155780
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientQuery.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientQuery.java
Tue Mar  1 05:55:53 2005
@@ -67,7 +67,7 @@
     /** {@inheritDoc} */
     public QueryResult execute() throws RepositoryException {
         try {
-            return factory.getQueryResult(session, remote.execute());
+            return getFactory().getQueryResult(session, remote.execute());
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientQueryManager.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientQueryManager.java?view=diff&r1=155779&r2=155780
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientQueryManager.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientQueryManager.java
Tue Mar  1 05:55:53 2005
@@ -64,7 +64,7 @@
             throws InvalidQueryException, RepositoryException {
         try {
             RemoteQuery query = remote.createQuery(statement, language);
-            return factory.getQuery(session, query);
+            return getFactory().getQuery(session, query);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -76,7 +76,7 @@
         try {
             // TODO fix this remote node dereferencing hack
             RemoteQuery query = remote.getQuery(node.getPath());
-            return factory.getQuery(session, query);
+            return getFactory().getQuery(session, query);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientQueryResult.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientQueryResult.java?view=diff&r1=155779&r2=155780
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientQueryResult.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientQueryResult.java
Tue Mar  1 05:55:53 2005
@@ -79,7 +79,7 @@
             RemoteRow[] remotes =  remote.getRows();
             Row[] rows = new Row[(remotes != null) ? remotes.length : 0];
             for (int i = 0; i < rows.length; i++) {
-                rows[i] = factory.getRow(remotes[i]);
+                rows[i] = getFactory().getRow(remotes[i]);
             }
             return new ArrayRowIterator(rows);
         } catch (RemoteException ex) {
@@ -93,7 +93,7 @@
             RemoteNode[] remotes = remote.getNodes();
             Node[] nodes = new Node[(remotes != null) ? remotes.length : 0];
             for (int i = 0; i < nodes.length; i++) {
-                nodes[i] = factory.getNode(session, remotes[i]);
+                nodes[i] = getFactory().getNode(session, remotes[i]);
             }
             return new ArrayNodeIterator(nodes);
         } catch (RemoteException ex) {

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientRepository.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientRepository.java?view=diff&r1=155779&r2=155780
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientRepository.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientRepository.java
Tue Mar  1 05:55:53 2005
@@ -78,7 +78,7 @@
             RepositoryException {
         try {
             RemoteSession session = remote.login();
-            return factory.getSession(this, session);
+            return getFactory().getSession(this, session);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -89,7 +89,7 @@
             NoSuchWorkspaceException, RepositoryException {
         try {
             RemoteSession session = remote.login(workspace);
-            return factory.getSession(this, session);
+            return getFactory().getSession(this, session);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -100,7 +100,7 @@
             NoSuchWorkspaceException, RepositoryException {
         try {
             RemoteSession session = remote.login(credentials);
-            return factory.getSession(this, session);
+            return getFactory().getSession(this, session);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -111,7 +111,7 @@
             LoginException, NoSuchWorkspaceException, RepositoryException {
         try {
             RemoteSession session = remote.login(credentials, workspace);
-            return factory.getSession(this, session);
+            return getFactory().getSession(this, session);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientSession.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientSession.java?view=diff&r1=155779&r2=155780
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientSession.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientSession.java
Tue Mar  1 05:55:53 2005
@@ -126,7 +126,7 @@
     /** {@inheritDoc} */
     public Workspace getWorkspace() {
         try {
-            return factory.getWorkspace(this, remote.getWorkspace());
+            return getFactory().getWorkspace(this, remote.getWorkspace());
         } catch (RemoteException ex) {
             throw new RemoteRuntimeException(ex);
         }
@@ -137,7 +137,7 @@
             LoginException, RepositoryException {
         try {
             RemoteSession session = remote.impersonate(credentials);
-            return factory.getSession(repository, session);
+            return getFactory().getSession(repository, session);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -146,7 +146,7 @@
     /** {@inheritDoc} */
     public Node getRootNode() throws RepositoryException {
         try {
-            return factory.getNode(this, remote.getRootNode());
+            return getFactory().getNode(this, remote.getRootNode());
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -156,7 +156,7 @@
     public Node getNodeByUUID(String uuid) throws ItemNotFoundException,
             RepositoryException {
         try {
-            return factory.getNode(this, remote.getNodeByUUID(uuid));
+            return getFactory().getNode(this, remote.getNodeByUUID(uuid));
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientWorkspace.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientWorkspace.java?view=diff&r1=155779&r2=155780
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientWorkspace.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientWorkspace.java
Tue Mar  1 05:55:53 2005
@@ -40,6 +40,9 @@
 import javax.jcr.version.Version;
 import javax.jcr.version.VersionException;
 
+import org.apache.jackrabbit.rmi.remote.RemoteNamespaceRegistry;
+import org.apache.jackrabbit.rmi.remote.RemoteNodeTypeManager;
+import org.apache.jackrabbit.rmi.remote.RemoteQueryManager;
 import org.apache.jackrabbit.rmi.remote.RemoteWorkspace;
 import org.apache.jackrabbit.rmi.xml.WorkspaceImportContentHandler;
 import org.xml.sax.ContentHandler;
@@ -132,7 +135,8 @@
     /** {@inheritDoc} */
     public QueryManager getQueryManager() throws RepositoryException {
         try {
-            return factory.getQueryManager(session, remote.getQueryManager());
+            RemoteQueryManager manager = remote.getQueryManager();
+            return getFactory().getQueryManager(session, manager);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -141,7 +145,8 @@
     /** {@inheritDoc} */
     public NamespaceRegistry getNamespaceRegistry() throws RepositoryException {
         try {
-            return factory.getNamespaceRegistry(remote.getNamespaceRegistry());
+            RemoteNamespaceRegistry registry = remote.getNamespaceRegistry();
+            return getFactory().getNamespaceRegistry(registry);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -150,7 +155,8 @@
     /** {@inheritDoc} */
     public NodeTypeManager getNodeTypeManager() throws RepositoryException {
         try {
-            return factory.getNodeTypeManager(remote.getNodeTypeManager());
+            RemoteNodeTypeManager manager = remote.getNodeTypeManager();
+            return getFactory().getNodeTypeManager(manager);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }



Mime
View raw message