|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.rmi.client.ClientAdapterFactory
public class ClientAdapterFactory
Default implementation of the
LocalAdapterFactory
interface. This factory uses the client adapters defined in this
package as the default adapter implementations. Subclasses can
easily override or extend the default adapters by implementing the
corresponding factory methods.
Constructor Summary | |
---|---|
ClientAdapterFactory()
|
Method Summary | |
---|---|
javax.jcr.Item |
getItem(javax.jcr.Session session,
RemoteItem remote)
Creates and returns a ClientItem instance. |
javax.jcr.nodetype.ItemDefinition |
getItemDef(RemoteItemDefinition remote)
Creates and returns a ClientItemDefinition instance. |
javax.jcr.lock.Lock |
getLock(javax.jcr.Node node,
RemoteLock remote)
Creates and returns a ClientLock instance. |
javax.jcr.NamespaceRegistry |
getNamespaceRegistry(RemoteNamespaceRegistry remote)
Creates and returns a ClientClientNamespaceRegistry instance. |
javax.jcr.Node |
getNode(javax.jcr.Session session,
RemoteNode remote)
Creates and returns a ClientNode instance. |
javax.jcr.nodetype.NodeDefinition |
getNodeDef(RemoteNodeDefinition remote)
Creates and returns a ClientNodeDefinition instance. |
javax.jcr.NodeIterator |
getNodeIterator(javax.jcr.Session session,
RemoteIterator remote)
Creates and returns a ClientNodeIterator instance. |
javax.jcr.nodetype.NodeType |
getNodeType(RemoteNodeType remote)
Creates and returns a ClientNodeType instance. |
javax.jcr.nodetype.NodeTypeIterator |
getNodeTypeIterator(RemoteIterator remote)
Creates and returns a ClientNodeTypeIterator instance. |
javax.jcr.nodetype.NodeTypeManager |
getNodeTypeManager(RemoteNodeTypeManager remote)
Creates and returns a ClienNodeTypeManager instance. |
javax.jcr.observation.ObservationManager |
getObservationManager(javax.jcr.Workspace workspace,
RemoteObservationManager remote)
Creates and returns a ClientObservationManager instance. |
javax.jcr.Property |
getProperty(javax.jcr.Session session,
RemoteProperty remote)
Creates and returns a ClientProperty instance. |
javax.jcr.nodetype.PropertyDefinition |
getPropertyDef(RemotePropertyDefinition remote)
Creates and returns a ClientPropertyDefinition
instance. |
javax.jcr.PropertyIterator |
getPropertyIterator(javax.jcr.Session session,
RemoteIterator remote)
Creates and returns a ClientPropertyIterator instance. |
javax.jcr.query.Query |
getQuery(javax.jcr.Session session,
RemoteQuery remote)
Creates and returns a ClientQuery instance. |
javax.jcr.query.QueryManager |
getQueryManager(javax.jcr.Session session,
RemoteQueryManager remote)
Creates and returns a ClientQueryManager instance. |
javax.jcr.query.QueryResult |
getQueryResult(javax.jcr.Session session,
RemoteQueryResult remote)
Creates and returns a ClientQueryResult instance. |
javax.jcr.Repository |
getRepository(RemoteRepository remote)
Creates and returns a ClientRepository
instance. |
javax.jcr.query.Row |
getRow(RemoteRow remote)
Creates and returns a ClientRow instance. |
javax.jcr.query.RowIterator |
getRowIterator(RemoteIterator remote)
Creates and returns a ClientRowIterator instance. |
javax.jcr.Session |
getSession(javax.jcr.Repository repository,
RemoteSession remote)
Creates and returns a ClientSession instance. |
javax.jcr.version.Version |
getVersion(javax.jcr.Session session,
RemoteVersion remote)
Creates and returns a ClientVersion instance. |
javax.jcr.version.VersionHistory |
getVersionHistory(javax.jcr.Session session,
RemoteVersionHistory remote)
Creates and returns a ClientVersionHistory
instance. |
javax.jcr.version.VersionIterator |
getVersionIterator(javax.jcr.Session session,
RemoteIterator remote)
Creates and returns a ClientVersionIterator instance. |
javax.jcr.Workspace |
getWorkspace(javax.jcr.Session session,
RemoteWorkspace remote)
Creates and returns a ClientWorkspace instance. |
XAResource |
getXAResource(RemoteXAResource remote)
Creates and returns a ClientXAResource instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientAdapterFactory()
Method Detail |
---|
public javax.jcr.Repository getRepository(RemoteRepository remote)
ClientRepository
instance.
Factory method for creating a local adapter for a remote repository.
getRepository
in interface LocalAdapterFactory
remote
- remote repository
public javax.jcr.Session getSession(javax.jcr.Repository repository, RemoteSession remote)
ClientSession
instance.
In case the remote session is transaction enabled, the returned session
will be transaction enabled too through the ClientXASession
.
Factory method for creating a local adapter for a remote session.
getSession
in interface LocalAdapterFactory
repository
- current repositoryremote
- remote session
public javax.jcr.Workspace getWorkspace(javax.jcr.Session session, RemoteWorkspace remote)
ClientWorkspace
instance.
Factory method for creating a local adapter for a remote workspace.
getWorkspace
in interface LocalAdapterFactory
session
- current sessionremote
- remote workspace
public javax.jcr.observation.ObservationManager getObservationManager(javax.jcr.Workspace workspace, RemoteObservationManager remote)
ClientObservationManager
instance.
Factory method for creating a local adapter for a remote observation
manager.
getObservationManager
in interface LocalAdapterFactory
workspace
- current workspaceremote
- remote observation manager
public javax.jcr.NamespaceRegistry getNamespaceRegistry(RemoteNamespaceRegistry remote)
ClientClientNamespaceRegistry
instance.
Factory method for creating a local adapter for a remote namespace
registry.
getNamespaceRegistry
in interface LocalAdapterFactory
remote
- remote namespace registry
public javax.jcr.nodetype.NodeTypeManager getNodeTypeManager(RemoteNodeTypeManager remote)
ClienNodeTypeManager
instance.
Factory method for creating a local adapter for a remote node type
manager.
getNodeTypeManager
in interface LocalAdapterFactory
remote
- remote node type manager
public javax.jcr.Item getItem(javax.jcr.Session session, RemoteItem remote)
ClientItem
instance.
Factory method for creating a local adapter for a remote item.
Note that before calling this method, the client may want to
introspect the remote item reference to determine whether to use the
getNode
or
getProperty
method
instead, as the adapter returned by this method will only cover
the basic Item
interface.
getItem
in interface LocalAdapterFactory
session
- current sessionremote
- remote item
public javax.jcr.Property getProperty(javax.jcr.Session session, RemoteProperty remote)
ClientProperty
instance.
Factory method for creating a local adapter for a remote property.
getProperty
in interface LocalAdapterFactory
session
- current sessionremote
- remote property
public javax.jcr.Node getNode(javax.jcr.Session session, RemoteNode remote)
ClientNode
instance.
Factory method for creating a local adapter for a remote node.
getNode
in interface LocalAdapterFactory
session
- current sessionremote
- remote node
public javax.jcr.version.Version getVersion(javax.jcr.Session session, RemoteVersion remote)
ClientVersion
instance.
Factory method for creating a local adapter for a remote version.
getVersion
in interface LocalAdapterFactory
session
- current sessionremote
- remote version
public javax.jcr.version.VersionHistory getVersionHistory(javax.jcr.Session session, RemoteVersionHistory remote)
ClientVersionHistory
instance.
Factory method for creating a local adapter for a remote version history.
getVersionHistory
in interface LocalAdapterFactory
session
- current sessionremote
- remote version history
public javax.jcr.nodetype.NodeType getNodeType(RemoteNodeType remote)
ClientNodeType
instance.
Factory method for creating a local adapter for a remote node type.
getNodeType
in interface LocalAdapterFactory
remote
- remote node type
public javax.jcr.nodetype.ItemDefinition getItemDef(RemoteItemDefinition remote)
ClientItemDefinition
instance.
Factory method for creating a local adapter for a remote item
definition. Note that before calling this method, the client may want to
introspect the remote item definition to determine whether to use the
getNodeDef
or
getPropertyDef
method
instead, as the adapter returned by this method will only cover
the ItemDef
base interface.
getItemDef
in interface LocalAdapterFactory
remote
- remote item definition
public javax.jcr.nodetype.NodeDefinition getNodeDef(RemoteNodeDefinition remote)
ClientNodeDefinition
instance.
Factory method for creating a local adapter for a remote node
definition.
getNodeDef
in interface LocalAdapterFactory
remote
- remote node definition
public javax.jcr.nodetype.PropertyDefinition getPropertyDef(RemotePropertyDefinition remote)
ClientPropertyDefinition
instance.
Factory method for creating a local adapter for a remote property
definition.
getPropertyDef
in interface LocalAdapterFactory
remote
- remote property definition
public javax.jcr.lock.Lock getLock(javax.jcr.Node node, RemoteLock remote)
ClientLock
instance.
Factory method for creating a local adapter for a remote lock.
getLock
in interface LocalAdapterFactory
node
- current noderemote
- remote lock
public javax.jcr.query.QueryManager getQueryManager(javax.jcr.Session session, RemoteQueryManager remote)
ClientQueryManager
instance.
Factory method for creating a local adapter for a remote query manager.
getQueryManager
in interface LocalAdapterFactory
session
- current sessionremote
- remote query manager
public javax.jcr.query.Query getQuery(javax.jcr.Session session, RemoteQuery remote)
ClientQuery
instance.
Factory method for creating a local adapter for a remote query.
getQuery
in interface LocalAdapterFactory
session
- current sessionremote
- remote query
public javax.jcr.query.QueryResult getQueryResult(javax.jcr.Session session, RemoteQueryResult remote)
ClientQueryResult
instance.
Factory method for creating a local adapter for a remote query result.
getQueryResult
in interface LocalAdapterFactory
session
- current sessionremote
- remote query result
public javax.jcr.query.Row getRow(RemoteRow remote)
ClientRow
instance.
Factory method for creating a local adapter for a remote query row.
getRow
in interface LocalAdapterFactory
remote
- remote query row
public javax.jcr.NodeIterator getNodeIterator(javax.jcr.Session session, RemoteIterator remote)
ClientNodeIterator
instance.
Factory method for creating a local adapter for a remote node iterator.
getNodeIterator
in interface LocalAdapterFactory
session
- current sessionremote
- remote node iterator
public javax.jcr.PropertyIterator getPropertyIterator(javax.jcr.Session session, RemoteIterator remote)
ClientPropertyIterator
instance.
Factory method for creating a local adapter for a remote property iterator.
getPropertyIterator
in interface LocalAdapterFactory
session
- current sessionremote
- remote property iterator
public javax.jcr.version.VersionIterator getVersionIterator(javax.jcr.Session session, RemoteIterator remote)
ClientVersionIterator
instance.
Factory method for creating a local adapter for a remote version iterator.
getVersionIterator
in interface LocalAdapterFactory
session
- current sessionremote
- remote version iterator
public javax.jcr.nodetype.NodeTypeIterator getNodeTypeIterator(RemoteIterator remote)
ClientNodeTypeIterator
instance.
Factory method for creating a local adapter for a remote
node type iterator.
getNodeTypeIterator
in interface LocalAdapterFactory
remote
- remote node type iterator
public javax.jcr.query.RowIterator getRowIterator(RemoteIterator remote)
ClientRowIterator
instance.
Factory method for creating a local adapter for a remote row iterator.
getRowIterator
in interface LocalAdapterFactory
remote
- remote row iterator
public XAResource getXAResource(RemoteXAResource remote)
ClientXAResource
instance.
getXAResource
in interface LocalAdapterFactory
remote
- remote XA resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |