Package de.uplanet.lucy.server.polling
Class PollingService
- java.lang.Object
-
- de.uplanet.lucy.server.polling.PollingService
-
@Scriptable @SpringBeanAccessor public final class PollingService extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IPollingServicegetInstance()Get thepollingServicebean.static IPollingServicegetInstance(org.springframework.context.ApplicationContext p_appCtx)Get thepollingServicebean.static booleanisAvailable()Check if thepollingServicebean is defined.static booleanisAvailable(org.springframework.context.ApplicationContext p_appCtx)Check if thepollingServicebean is defined.
-
-
-
Field Detail
-
BEAN_NAME
public static final String BEAN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
isAvailable
public static boolean isAvailable()
Check if thepollingServicebean is defined.- Returns:
trueif the bean is defined, orfalseotherwise.- 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 thepollingServicebean is defined.- Parameters:
p_appCtx- The Spring application context.- Returns:
trueif the bean is defined, orfalseotherwise.- 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 IPollingService getInstance() throws org.springframework.beans.BeansException
Get thepollingServicebean.- Returns:
- The bean.
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException- If the beanpollingServiceis 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 IPollingService getInstance(org.springframework.context.ApplicationContext p_appCtx) throws org.springframework.beans.BeansException
Get thepollingServicebean.- Parameters:
p_appCtx- The Spring application context.- Returns:
- The bean.
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException- If the beanpollingServiceis 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.
-
-