Class URLArgumentFactory

All Implemented Interfaces:
ArgumentFactory, ArgumentFactory.Preparable

class URLArgumentFactory extends AbstractArgumentFactory<URL>
Build URL objects as strings.
  • Constructor Details

    • URLArgumentFactory

      URLArgumentFactory()
      Constructs an ArgumentFactory for type URL.
  • Method Details

    • build

      protected Argument build(URL url, ConfigRegistry config)
      Description copied from class: AbstractArgumentFactory
      Produce an argument object for the given value. When the implementation class has accepted a given type, it must then produce an argument instance or throw an exception.
      Specified by:
      build in class AbstractArgumentFactory<URL>
      Parameters:
      url - the value to convert to an argument
      config - the config registry
      Returns:
      An Argument for the given value. Must not be null!