Interface CDOViewProvider

All Known Subinterfaces:
CDOViewProvider.CDOViewProvider2
All Known Implementing Classes:
AbstractCDOViewProvider, CDONet4jViewProvider, CDONet4jViewProvider.JVM, CDONet4jViewProvider.SSL, CDONet4jViewProvider.TCP, CDONet4jViewProvider.WS, CDONet4jViewProvider.WSS, ManagedContainerViewProvider

public interface CDOViewProvider
Capable of opening a CDOView on a target repository, defined by a URI. A regular expression and the priority are used to determine the most suitable provider.
Since:
2.0
Author:
Victor Roldan Betancort
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A view provider with advanced view URI and path information methods.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The default priority used when no provider-specific priority is configured.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the priority of this provider.
    Returns the regular expression that determines if the provider can handle certain URI
     
    getView(URI uri, ResourceSet resourceSet)
    Receives a URI and returns an opened CDOView against the repository.
    boolean
    Checks if the URI matches with the regular expression of this provider
  • Field Details

    • DEFAULT_PRIORITY

      static final int DEFAULT_PRIORITY
      The default priority used when no provider-specific priority is configured.
      See Also:
  • Method Details

    • getPriority

      int getPriority()
      Returns the priority of this provider. Usually used to choose between several CDOViewProviders that match the same repository URI. A higher priority value is preferred in that decision.
    • getRegex

      String getRegex()
      Returns the regular expression that determines if the provider can handle certain URI
    • matchesRegex

      boolean matchesRegex(URI uri)
      Checks if the URI matches with the regular expression of this provider
    • getView

      CDOView getView(URI uri, ResourceSet resourceSet)
      Receives a URI and returns an opened CDOView against the repository.
    • getResourceURI

      URI getResourceURI(CDOView view, String path)
      Since:
      4.0