jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r155781 - incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server
Date Tue, 01 Mar 2005 14:07:09 GMT
Author: jukka
Date: Tue Mar  1 06:07:03 2005
New Revision: 155781

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

Modified:
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItem.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItemDef.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNode.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeDef.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeTypeManager.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerObject.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerProperty.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQuery.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryManager.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryResult.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerRepository.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerSession.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerWorkspace.java

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItem.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItem.java?view=diff&r1=155780&r2=155781
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItem.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItem.java
Tue Mar  1 06:07:03 2005
@@ -46,7 +46,7 @@
 public class ServerItem extends ServerObject implements RemoteItem {
 
     /** The adapted local item. */
-    protected Item item;
+    private Item item;
 
     /**
      * Creates a remote adapter for the given local item.
@@ -113,7 +113,7 @@
     public RemoteNode getParent() throws ItemNotFoundException,
             AccessDeniedException, RepositoryException, RemoteException {
         try {
-            return factory.getRemoteNode(item.getParent());
+            return getFactory().getRemoteNode(item.getParent());
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItemDef.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItemDef.java?view=diff&r1=155780&r2=155781
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItemDef.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItemDef.java
Tue Mar  1 06:07:03 2005
@@ -58,7 +58,7 @@
 
     /** {@inheritDoc} */
     public RemoteNodeType getDeclaringNodeType() throws RemoteException {
-        return factory.getRemoteNodeType(def.getDeclaringNodeType());
+        return getFactory().getRemoteNodeType(def.getDeclaringNodeType());
     }
 
     /** {@inheritDoc} */

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNode.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNode.java?view=diff&r1=155780&r2=155781
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNode.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNode.java
Tue Mar  1 06:07:03 2005
@@ -26,10 +26,12 @@
 import javax.jcr.NoSuchWorkspaceException;
 import javax.jcr.Node;
 import javax.jcr.PathNotFoundException;
+import javax.jcr.Property;
 import javax.jcr.RepositoryException;
 import javax.jcr.UnsupportedRepositoryOperationException;
 import javax.jcr.Value;
 import javax.jcr.ValueFormatException;
+import javax.jcr.lock.Lock;
 import javax.jcr.lock.LockException;
 import javax.jcr.nodetype.ConstraintViolationException;
 import javax.jcr.nodetype.NoSuchNodeTypeException;
@@ -75,7 +77,7 @@
             PathNotFoundException, ConstraintViolationException,
             RepositoryException, RemoteException {
         try {
-            return factory.getRemoteNode(node.addNode(path));
+            return getFactory().getRemoteNode(node.addNode(path));
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -87,7 +89,7 @@
             NoSuchNodeTypeException, ConstraintViolationException,
             RepositoryException, RemoteException {
         try {
-            return factory.getRemoteNode(node.addNode(path, type));
+            return getFactory().getRemoteNode(node.addNode(path, type));
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -97,7 +99,7 @@
     public RemoteProperty getProperty(String path) throws PathNotFoundException,
             RepositoryException, RemoteException {
         try {
-            return factory.getRemoteProperty(node.getProperty(path));
+            return getFactory().getRemoteProperty(node.getProperty(path));
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -195,7 +197,7 @@
     public RemoteNodeType getPrimaryNodeType() throws RepositoryException,
             RemoteException {
         try {
-            return factory.getRemoteNodeType(node.getPrimaryNodeType());
+            return getFactory().getRemoteNodeType(node.getPrimaryNodeType());
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -234,7 +236,7 @@
     public RemoteNode getNode(String path) throws PathNotFoundException,
             RepositoryException, RemoteException {
         try {
-            return factory.getRemoteNode(node.getNode(path));
+            return getFactory().getRemoteNode(node.getNode(path));
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -254,7 +256,7 @@
     public RemoteProperty setProperty(String name, Value value)
             throws ValueFormatException, RepositoryException, RemoteException {
         try {
-            return factory.getRemoteProperty(node.setProperty(name, value));
+            return getFactory().getRemoteProperty(node.setProperty(name, value));
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -306,7 +308,8 @@
     public RemoteProperty setProperty(String name, Value[] values)
             throws ValueFormatException, RepositoryException, RemoteException {
         try {
-            return factory.getRemoteProperty(node.setProperty(name, values));
+            Property property = node.setProperty(name, values);
+            return getFactory().getRemoteProperty(property);
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -316,7 +319,7 @@
     public RemoteNodeDef getDefinition() throws RepositoryException,
             RemoteException {
         try {
-            return factory.getRemoteNodeDef(node.getDefinition());
+            return getFactory().getRemoteNodeDef(node.getDefinition());
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -432,7 +435,8 @@
             throws ValueFormatException, VersionException, LockException,
             RepositoryException, RemoteException {
         try {
-            return factory.getRemoteProperty(node.setProperty(name, values, type));
+            Property property = node.setProperty(name, values, type);
+            return getFactory().getRemoteProperty(property);
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -454,7 +458,7 @@
             LockException, AccessDeniedException, RepositoryException,
             RemoteException {
         try {
-            return factory.getRemoteLock(node.getLock());
+            return getFactory().getRemoteLock(node.getLock());
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -465,7 +469,8 @@
             throws UnsupportedRepositoryOperationException, LockException,
             AccessDeniedException, RepositoryException, RemoteException {
         try {
-            return factory.getRemoteLock(node.lock(isDeep, isSessionScoped));
+            Lock lock = node.lock(isDeep, isSessionScoped);
+            return getFactory().getRemoteLock(lock);
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeDef.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeDef.java?view=diff&r1=155780&r2=155781
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeDef.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeDef.java
Tue Mar  1 06:07:03 2005
@@ -59,7 +59,7 @@
 
     /** {@inheritDoc} */
     public RemoteNodeType getDefaultPrimaryType() throws RemoteException {
-        return factory.getRemoteNodeType(def.getDefaultPrimaryType());
+        return getFactory().getRemoteNodeType(def.getDefaultPrimaryType());
     }
 
     /** {@inheritDoc} */

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeTypeManager.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeTypeManager.java?view=diff&r1=155780&r2=155781
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeTypeManager.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeTypeManager.java
Tue Mar  1 06:07:03 2005
@@ -61,7 +61,7 @@
     public RemoteNodeType getNodeType(String name) throws
             NoSuchNodeTypeException, RepositoryException, RemoteException {
         try {
-            return factory.getRemoteNodeType(manager.getNodeType(name));
+            return getFactory().getRemoteNodeType(manager.getNodeType(name));
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerObject.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerObject.java?view=diff&r1=155780&r2=155781
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerObject.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerObject.java
Tue Mar  1 06:07:03 2005
@@ -65,13 +65,14 @@
 public class ServerObject extends UnicastRemoteObject {
 
     /** Factory for creating server adapters. */
-    protected RemoteAdapterFactory factory;
+    private RemoteAdapterFactory factory;
 
     /**
      * Creates a basic server adapter that uses the given factory
      * to create new adapters.
      *
      * @param factory remote adapter factory
+     * @throws RemoteException on RMI errors
      */
     protected ServerObject(RemoteAdapterFactory factory)
             throws RemoteException {
@@ -79,6 +80,15 @@
     }
 
     /**
+     * Returns the remote adapter factory used to create new adapters.
+     *
+     * @return remote adapter factory
+     */
+    protected RemoteAdapterFactory getFactory() {
+        return factory;
+    }
+
+    /**
      * Returns a cleaned version of the given exception. In some cases
      * the underlying repository implementation may throw exceptions
      * that are either unserializable, use exception subclasses that are
@@ -287,7 +297,7 @@
      * @return remote property definition array
      * @throws RemoteException on RMI errors
      */
-    protected RemotePropertyDef[] getRemotePropertyDefArray(PropertyDef[] defs) 
+    protected RemotePropertyDef[] getRemotePropertyDefArray(PropertyDef[] defs)
             throws RemoteException {
         if (defs == null) {
             return new RemotePropertyDef[0]; // for safety

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerProperty.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerProperty.java?view=diff&r1=155780&r2=155781
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerProperty.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerProperty.java
Tue Mar  1 06:07:03 2005
@@ -120,7 +120,7 @@
     public RemotePropertyDef getDefinition() throws RepositoryException,
             RemoteException {
         try {
-            return factory.getRemotePropertyDef(property.getDefinition());
+            return getFactory().getRemotePropertyDef(property.getDefinition());
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQuery.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQuery.java?view=diff&r1=155780&r2=155781
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQuery.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQuery.java
Tue Mar  1 06:07:03 2005
@@ -60,7 +60,7 @@
 
     /** {@inheritDoc} */
     public RemoteQueryResult execute() throws RepositoryException, RemoteException {
-        return new ServerQueryResult(query.execute(), factory);
+        return new ServerQueryResult(query.execute(), getFactory());
     }
 
     /** {@inheritDoc} */

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryManager.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryManager.java?view=diff&r1=155780&r2=155781
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryManager.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryManager.java
Tue Mar  1 06:07:03 2005
@@ -63,7 +63,7 @@
             throws InvalidQueryException, RepositoryException, RemoteException {
         try {
             Query query = manager.createQuery(statement, language);
-            return new ServerQuery(query, factory);
+            return new ServerQuery(query, getFactory());
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -74,7 +74,7 @@
             throws InvalidQueryException, RepositoryException, RemoteException {
         try {
             Node node = null; // TODO
-            return new ServerQuery(manager.getQuery(node), factory);
+            return new ServerQuery(manager.getQuery(node), getFactory());
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryResult.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryResult.java?view=diff&r1=155780&r2=155781
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryResult.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryResult.java
Tue Mar  1 06:07:03 2005
@@ -68,7 +68,7 @@
 
         RemoteRow[] remotes = new RemoteRow[(int) iterator.getSize()];
         for (int i = 0; iterator != null && iterator.hasNext(); i++) {
-            remotes[i] = new ServerRow(iterator.nextRow(), factory);
+            remotes[i] = new ServerRow(iterator.nextRow(), getFactory());
         }
         return remotes;
 
@@ -83,7 +83,7 @@
 
         RemoteNode[] remotes = new RemoteNode[(int) iterator.getSize()];
         for (int i = 0; iterator != null && iterator.hasNext(); i++) {
-            remotes[i] = factory.getRemoteNode(iterator.nextNode());
+            remotes[i] = getFactory().getRemoteNode(iterator.nextNode());
         }
         return remotes;
     }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerRepository.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerRepository.java?view=diff&r1=155780&r2=155781
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerRepository.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerRepository.java
Tue Mar  1 06:07:03 2005
@@ -72,7 +72,7 @@
             NoSuchWorkspaceException, RepositoryException, RemoteException {
         try {
             Session session = repository.login();
-            return factory.getRemoteSession(session);
+            return getFactory().getRemoteSession(session);
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -83,7 +83,7 @@
             NoSuchWorkspaceException, RepositoryException, RemoteException {
         try {
             Session session = repository.login(workspace);
-            return factory.getRemoteSession(session);
+            return getFactory().getRemoteSession(session);
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -94,7 +94,7 @@
             NoSuchWorkspaceException, RepositoryException, RemoteException {
         try {
             Session session = repository.login(credentials);
-            return factory.getRemoteSession(session);
+            return getFactory().getRemoteSession(session);
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -106,7 +106,7 @@
             RepositoryException, RemoteException {
         try {
             Session session = repository.login(credentials, workspace);
-            return factory.getRemoteSession(session);
+            return getFactory().getRemoteSession(session);
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerSession.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerSession.java?view=diff&r1=155780&r2=155781
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerSession.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerSession.java
Tue Mar  1 06:07:03 2005
@@ -88,7 +88,8 @@
     public RemoteSession impersonate(Credentials credentials)
             throws LoginException, RepositoryException, RemoteException {
         try {
-            return factory.getRemoteSession(session.impersonate(credentials));
+            Session newSession = session.impersonate(credentials);
+            return getFactory().getRemoteSession(newSession);
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -96,7 +97,7 @@
 
     /** {@inheritDoc} */
     public RemoteWorkspace getWorkspace() throws RemoteException {
-        return factory.getRemoteWorkspace(session.getWorkspace());
+        return getFactory().getRemoteWorkspace(session.getWorkspace());
     }
 
     /** {@inheritDoc} */
@@ -154,7 +155,7 @@
     public RemoteNode getNodeByUUID(String uuid) throws ItemNotFoundException,
             RepositoryException, RemoteException {
         try {
-            return factory.getRemoteNode(session.getNodeByUUID(uuid));
+            return getFactory().getRemoteNode(session.getNodeByUUID(uuid));
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -164,7 +165,7 @@
     public RemoteNode getRootNode() throws RepositoryException,
             RemoteException {
         try {
-            return factory.getRemoteNode(session.getRootNode());
+            return getFactory().getRemoteNode(session.getRootNode());
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerWorkspace.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerWorkspace.java?view=diff&r1=155780&r2=155781
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerWorkspace.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerWorkspace.java
Tue Mar  1 06:07:03 2005
@@ -123,7 +123,7 @@
             throws RepositoryException, RemoteException {
         try {
             NodeTypeManager manager = workspace.getNodeTypeManager();
-            return factory.getRemoteNodeTypeManager(manager);
+            return getFactory().getRemoteNodeTypeManager(manager);
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -134,7 +134,7 @@
             throws RepositoryException, RemoteException {
         try {
             NamespaceRegistry registry = workspace.getNamespaceRegistry();
-            return factory.getRemoteNamespaceRegistry(registry);
+            return getFactory().getRemoteNamespaceRegistry(registry);
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }
@@ -145,7 +145,7 @@
             throws RepositoryException, RemoteException {
         try {
             QueryManager queryManager = workspace.getQueryManager();
-            return factory.getRemoteQueryManager(queryManager);
+            return getFactory().getRemoteQueryManager(queryManager);
         } catch (RepositoryException ex) {
             throw getRepositoryException(ex);
         }



Mime
View raw message