org.eclipse.emf.cdo.net4j
Class CDONet4jViewProvider

java.lang.Object
  extended by org.eclipse.emf.cdo.view.AbstractCDOViewProvider
      extended by org.eclipse.emf.cdo.net4j.CDONet4jViewProvider
All Implemented Interfaces:
CDOViewProvider
Direct Known Subclasses:
CDONet4jViewProvider.JVM, CDONet4jViewProvider.SSL, CDONet4jViewProvider.TCP

public abstract class CDONet4jViewProvider
extends AbstractCDOViewProvider

Since:
4.0
Author:
Eike Stepper

Nested Class Summary
static class CDONet4jViewProvider.JVM
           
static class CDONet4jViewProvider.SSL
           
static class CDONet4jViewProvider.TCP
           
 
Field Summary
 
Fields inherited from interface org.eclipse.emf.cdo.view.CDOViewProvider
DEFAULT_PRIORITY
 
Constructor Summary
CDONet4jViewProvider(String transport, int priority)
           
 
Method Summary
protected  IConnector getConnector(String authority)
           
protected  String getConnectorDescription(String authority)
           
protected  IManagedContainer getContainer()
           
 URI getResourceURI(CDOView view, String path)
          Must be overwritten for non-canonical URI formats!
protected  CDOSession getSession(IConnector connector, String userName, String passWord, String repositoryName)
           
protected  CDOSessionConfiguration getSessionConfiguration(IConnector connector, String userName, String passWord, String repositoryName)
           
protected  String getURIAuthority(IConnector connector)
           
 CDOView getView(URI uri, ResourceSet resourceSet)
          Receives a URI and returns an opened CDOView against the repository.
 
Methods inherited from class org.eclipse.emf.cdo.view.AbstractCDOViewProvider
getPriority, getRegex, matchesRegex, setPriority, setRegex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDONet4jViewProvider

public CDONet4jViewProvider(String transport,
                            int priority)
Method Detail

getView

public CDOView getView(URI uri,
                       ResourceSet resourceSet)
Description copied from interface: CDOViewProvider
Receives a URI and returns an opened CDOView against the repository. The implementer is responsible to do the UUID to physical host map in case necessary.

Returns:
a wired-up and opened CDOView

getResourceURI

public URI getResourceURI(CDOView view,
                          String path)
Description copied from class: AbstractCDOViewProvider
Must be overwritten for non-canonical URI formats!

Specified by:
getResourceURI in interface CDOViewProvider
Overrides:
getResourceURI in class AbstractCDOViewProvider

getURIAuthority

protected String getURIAuthority(IConnector connector)

getSession

protected CDOSession getSession(IConnector connector,
                                String userName,
                                String passWord,
                                String repositoryName)

getSessionConfiguration

protected CDOSessionConfiguration getSessionConfiguration(IConnector connector,
                                                          String userName,
                                                          String passWord,
                                                          String repositoryName)

getContainer

protected IManagedContainer getContainer()

getConnector

protected IConnector getConnector(String authority)

getConnectorDescription

protected String getConnectorDescription(String authority)


Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.