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

A view provider that uses Net4j-specific CDO sessions to open views.

Since:
4.0

Nested Class Summary
static class CDONet4jViewProvider.JVM
          A JVM-based view provider.
static class CDONet4jViewProvider.SSL
          An SSL-based view provider.
static class CDONet4jViewProvider.TCP
          A TCP-based view provider.
 
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()
           
protected  CDONet4jSession getNet4jSession(IConnector connector, String userName, String passWord, String repositoryName)
           
protected  CDONet4jSessionConfiguration getNet4jSessionConfiguration(IConnector connector, String userName, String passWord, String repositoryName)
           
 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)
          Deprecated. Use getNet4jSession().
protected  CDOSessionConfiguration getSessionConfiguration(IConnector connector, String userName, String passWord, String repositoryName)
          Deprecated. Use getNet4jSessionConfiguration().
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)

getNet4jSession

protected CDONet4jSession getNet4jSession(IConnector connector,
                                          String userName,
                                          String passWord,
                                          String repositoryName)
Since:
4.1

getNet4jSessionConfiguration

protected CDONet4jSessionConfiguration getNet4jSessionConfiguration(IConnector connector,
                                                                    String userName,
                                                                    String passWord,
                                                                    String repositoryName)
Since:
4.1

getSession

@Deprecated
protected CDOSession getSession(IConnector connector,
                                           String userName,
                                           String passWord,
                                           String repositoryName)
Deprecated. Use getNet4jSession().


getSessionConfiguration

@Deprecated
protected CDOSessionConfiguration getSessionConfiguration(IConnector connector,
                                                                     String userName,
                                                                     String passWord,
                                                                     String repositoryName)
Deprecated. Use getNet4jSessionConfiguration().


getContainer

protected IManagedContainer getContainer()

getConnector

protected IConnector getConnector(String authority)

getConnectorDescription

protected String getConnectorDescription(String authority)


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