Class JavaMailContainer

  • All Implemented Interfaces:
    Container

    public class JavaMailContainer
    extends java.lang.Object
    implements Container
    • Field Detail

      • module

        public static final java.lang.String module
      • timerDelay

        protected long timerDelay
      • maxSize

        protected long maxSize
      • pollTimer

        protected java.util.concurrent.ScheduledExecutorService pollTimer
      • deleteMail

        protected boolean deleteMail
      • configFile

        protected java.lang.String configFile
    • Constructor Detail

      • JavaMailContainer

        public JavaMailContainer()
    • Method Detail

      • init

        public void init​(java.util.List<StartupCommand> ofbizCommands,
                         java.lang.String name,
                         java.lang.String configFile)
                  throws ContainerException
        Description copied from interface: Container
        Initialize the container. This method must not block - implementations should initialize internal structures and then return.
        Specified by:
        init in interface Container
        Parameters:
        ofbizCommands - Command-line arguments.
        name - Unique name of the container's instance.
        configFile - Location of the configuration file used to load this container.
        Throws:
        ContainerException - If an error was encountered. Throwing this exception will halt container loading, so it should be thrown only when other containers might depend on this one.
      • start

        public boolean start()
                      throws ContainerException
        Description copied from interface: Container
        Start the container process. This method must not block - implementations that require thread blocking must create a separate thread and then return.
        Specified by:
        start in interface Container
        Returns:
        true if the process started.
        Throws:
        ContainerException - If an error was encountered.
      • getName

        public java.lang.String getName()
        Description copied from interface: Container
        Return the container name.
        Specified by:
        getName in interface Container
        Returns:
        Name of the container's instance.
      • updateUrlName

        protected URLName updateUrlName​(URLName urlName,
                                        java.util.Properties props)