Class SendMailService
java.lang.Object
de.uplanet.lucy.server.mailservice.send.SendMailService
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic de.uplanet.lucy.server.mailservice.send.ISendMailService
Get thesendMailService
bean.static de.uplanet.lucy.server.mailservice.send.ISendMailService
getInstance
(org.springframework.context.ApplicationContext p_appCtx) Get thesendMailService
bean.static boolean
Check if thesendMailService
bean is defined.static boolean
isAvailable
(org.springframework.context.ApplicationContext p_appCtx) Check if thesendMailService
bean is defined.
-
Field Details
-
BEAN_NAME
- See Also:
-
-
Method Details
-
isAvailable
public static boolean isAvailable()Check if thesendMailService
bean is defined.- Returns:
true
if the bean is defined, orfalse
otherwise.- Throws:
org.springframework.beans.factory.BeanNotOfRequiredTypeException
- If the bean is not of the required type.org.springframework.beans.BeansException
- If the bean could not be created.
-
isAvailable
public static boolean isAvailable(org.springframework.context.ApplicationContext p_appCtx) Check if thesendMailService
bean is defined.- Parameters:
p_appCtx
- The application context.- Returns:
true
if the bean is defined, orfalse
otherwise.- Throws:
org.springframework.beans.factory.BeanNotOfRequiredTypeException
- If the bean is not of the required type.org.springframework.beans.BeansException
- If the bean could not be created.
-
getInstance
public static de.uplanet.lucy.server.mailservice.send.ISendMailService getInstance() throws org.springframework.beans.BeansExceptionGet thesendMailService
bean.- Returns:
- The bean.
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
- If the beansendMailService
is not defined.org.springframework.beans.factory.BeanNotOfRequiredTypeException
- If the bean is not of the required type.org.springframework.beans.BeansException
- If the bean could not be created.
-
getInstance
public static de.uplanet.lucy.server.mailservice.send.ISendMailService getInstance(org.springframework.context.ApplicationContext p_appCtx) throws org.springframework.beans.BeansException Get thesendMailService
bean.- Parameters:
p_appCtx
- The application context.- Returns:
- The bean.
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
- If the beansendMailService
is not defined.org.springframework.beans.factory.BeanNotOfRequiredTypeException
- If the bean is not of the required type.org.springframework.beans.BeansException
- If the bean could not be created.
-