Class URLFactoryPlugin<R,U extends PortalURL<R,U>>

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.web.url.URLFactoryPlugin<R,U>
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
Direct Known Subclasses:
NodeURLFactoryPlugin, SimpleURLFactoryPlugin

public abstract class URLFactoryPlugin<R,U extends PortalURL<R,U>> extends org.exoplatform.container.component.BaseComponentPlugin
A plugin for adding an url factory to the URLFactoryService.
Version:
$Revision$
Author:
Julien Viet
  • Field Summary

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract ResourceType<R,U>
    Returns the resource type.
    protected abstract U
    newURL(URLContext context)
    Returns a new url instance.

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • URLFactoryPlugin

      public URLFactoryPlugin()
  • Method Details

    • getResourceType

      protected abstract ResourceType<R,U> getResourceType()
      Returns the resource type.
      Returns:
      the resource type
    • newURL

      protected abstract U newURL(URLContext context)
      Returns a new url instance.
      Parameters:
      context - the context
      Returns:
      a new url instance