public class Mail<T extends Mail<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Mail.MailResources
Child mutators for Mail
|
Constructor and Description |
---|
Mail() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
String |
getKey() |
T |
mailSession(MailSession value)
Add the MailSession object to the list of subresources
|
T |
mailSession(MailSessionSupplier supplier)
Install a supplied MailSession object to the list of subresources
|
T |
mailSession(String childKey)
Create and configure a MailSession object to the list of subresources
|
T |
mailSession(String childKey,
MailSessionConsumer consumer)
Create and configure a MailSession object to the list of subresources
|
T |
mailSessions(List<MailSession> value)
Add all MailSession objects to this subresource
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
Mail.MailResources |
subresources() |
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Mail.MailResources subresources()
public T mailSessions(List<MailSession> value)
value
- List of MailSession objects.public T mailSession(MailSession value)
value
- The MailSession to addpublic T mailSession(String childKey, MailSessionConsumer consumer)
key
- The key for the MailSession resourceconfig
- The MailSessionConsumer to usepublic T mailSession(String childKey)
key
- The key for the MailSession resourcepublic T mailSession(MailSessionSupplier supplier)
Copyright © 2019 JBoss by Red Hat. All rights reserved.