Class ConfiguredGreenMail

java.lang.Object
com.icegreen.greenmail.configuration.ConfiguredGreenMail
All Implemented Interfaces:
GreenMailOperations
Direct Known Subclasses:
GreenMail, GreenMailProxy

public abstract class ConfiguredGreenMail extends Object implements GreenMailOperations
A version of GreenMailOperations that implements the configure() method.
  • Constructor Details

    • ConfiguredGreenMail

      public ConfiguredGreenMail()
  • Method Details

    • withConfiguration

      public ConfiguredGreenMail withConfiguration(GreenMailConfiguration config)
      Description copied from interface: GreenMailOperations
      Configure GreenMail instance using the given configuration
      Specified by:
      withConfiguration in interface GreenMailOperations
      Parameters:
      config - Configuration to use
      Returns:
      self (for method chaining)
    • doConfigure

      protected void doConfigure()
      This method can be used by child classes to apply the configuration that is stored in config.