org.wildfly.swarm.mail

## Class MailFraction

- java.lang.Object
- - org.wildfly.swarm.config.Mail<MailFraction>
  - - org.wildfly.swarm.mail.MailFraction

- All Implemented Interfaces:
    Fraction<MailFraction>

      public class MailFraction
      extends Mail<MailFraction>
      implements Fraction<MailFraction>

  Author:
    Ken Finnigan

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.wildfly.swarm.config.Mail

      `Mail.MailResources`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MailFraction()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `MailFraction` | `applyDefaults()` Apply whatever defaults are required if this fraction was not explicitly configured by a user.
    `static MailFraction` | `defaultFraction()`
    `MailFraction` | `mailSession(String key, EnhancedMailSessionConsumer consumer)`
    `MailFraction` | `smtpServer(String key, EnhancedSMTPServerConsumer consumer)`

    - ### Methods inherited from class org.wildfly.swarm.config.Mail

      `addPropertyChangeListener, getKey, mailSession, mailSession, mailSession, mailSession, mailSessions, removePropertyChangeListener, subresources`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.wildfly.swarm.spi.api.Fraction

      `applyDefaults`

- - ### Constructor Detail

    - #### MailFraction

          public MailFraction()

  - ### Method Detail

    - #### defaultFraction

          public static MailFraction defaultFraction()

    - #### applyDefaults

          public MailFraction applyDefaults()

      Description copied from interface: `Fraction`
      Apply whatever defaults are required if this fraction was not explicitly configured by a user.
      Specified by:
        `applyDefaults` in interface `Fraction<MailFraction>`
      Returns:
        this fraction.

    - #### mailSession

          public MailFraction mailSession(String key,
                                          EnhancedMailSessionConsumer consumer)

    - #### smtpServer

          public MailFraction smtpServer(String key,
                                         EnhancedSMTPServerConsumer consumer)

Copyright © 2017 JBoss by Red Hat. All rights reserved.