@Import(value=nc.ird.cantharella.data.config.DataContext.class) @ComponentScan(basePackages={"nc.ird.cantharella.service.services","nc.ird.cantharella.service.utils"}) @Configuration public abstract class ServiceContext extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
adminCourrielProperty
Admin default courriel
|
protected String |
adminPasswordProperty
Admin default password
|
protected boolean |
mailDebugProperty
E-mail debug mode
|
protected String |
mailFromProperty
E-mail "from"
|
protected String |
mailHostProperty
E-mail SMTP host
|
| Constructor and Description |
|---|
ServiceContext() |
| Modifier and Type | Method and Description |
|---|---|
Utilisateur |
defaultAdmin() |
static boolean |
isMailActivated()
mailActivated getter
|
org.springframework.mail.SimpleMailMessage |
mailMessage() |
org.springframework.mail.MailSender |
mailSender() |
static org.springframework.context.support.PropertySourcesPlaceholderConfigurer |
properties()
Set the service layer properties for the cantharella configuration
|
org.springframework.context.support.MessageSourceAccessor |
serviceMessageSource() |
static void |
setMailActivated(boolean mailActivated)
mailActivated setter
|
@Value(value="${admin.courriel}")
protected String adminCourrielProperty
@Value(value="${admin.password}")
protected String adminPasswordProperty
@Value(value="${mail.debug}")
protected boolean mailDebugProperty
@Value(value="${mail.from}")
protected String mailFromProperty
@Value(value="${mail.host}")
protected String mailHostProperty
public static boolean isMailActivated()
public static void setMailActivated(boolean mailActivated)
mailActivated - mailActivated@Bean public Utilisateur defaultAdmin()
@Bean public org.springframework.mail.SimpleMailMessage mailMessage()
@Bean public org.springframework.mail.MailSender mailSender()
@Bean public org.springframework.context.support.MessageSourceAccessor serviceMessageSource()
@Bean public static org.springframework.context.support.PropertySourcesPlaceholderConfigurer properties()
Copyright © 2009-2013 IRD. All Rights Reserved.