Class PlurlImpl.PlurlFactoryHolder<F,H>

java.lang.Object
org.eclipse.equinox.plurl.impl.PlurlImpl.PlurlFactoryHolder<F,H>
All Implemented Interfaces:
PlurlFactory
Direct Known Subclasses:
PlurlImpl.ContentHandlerFactoryHolder, PlurlImpl.URLStreamHandlerFactoryHolder
Enclosing class:
PlurlImpl

public abstract class PlurlImpl.PlurlFactoryHolder<F,H> extends Object implements PlurlFactory
  • Constructor Details

    • PlurlFactoryHolder

      public PlurlFactoryHolder(F factory)
  • Method Details

    • shouldHandle

      public boolean shouldHandle(Class<?> clazz)
      Description copied from interface: PlurlFactory
      A plurl implementation will call this method with the classes in the call stack which are using the java.net APIs to create URL objects for a specific type. For example, a protocol or content type.
      Specified by:
      shouldHandle in interface PlurlFactory
      Parameters:
      clazz - a class in the call stack using the java.net APIs
      Returns:
      true if this factory should be used to handle the request
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • createHandler

      protected abstract H createHandler(String type, F f)
    • remove

      protected abstract void remove(F f)