open class DefaultManagedTaskScheduler : ConcurrentTaskScheduler, InitializingBean
JNDI-based variant of ConcurrentTaskScheduler, performing a default lookup for JSR-236's "java:comp/DefaultManagedScheduledExecutorService" in a Java EE 7 environment.
Note: This class is not strictly JSR-236 based; it can work with any regular java.util.concurrent.ScheduledExecutorService that can be found in JNDI. The actual adapting to javax.enterprise.concurrent.ManagedScheduledExecutorService happens in the base class ConcurrentTaskScheduler itself.
Author
Juergen Hoeller
Since
4.0
DefaultManagedTaskScheduler()
JNDI-based variant of ConcurrentTaskScheduler, performing a default lookup for JSR-236's "java:comp/DefaultManagedScheduledExecutorService" in a Java EE 7 environment. Note: This class is not strictly JSR-236 based; it can work with any regular java.util.concurrent.ScheduledExecutorService that can be found in JNDI. The actual adapting to javax.enterprise.concurrent.ManagedScheduledExecutorService happens in the base class ConcurrentTaskScheduler itself. |
open fun afterPropertiesSet(): Unit |
|
open fun setJndiEnvironment(jndiEnvironment: Properties): Unit
Set the JNDI environment to use for JNDI lookups. |
|
open fun setJndiName(jndiName: String): Unit
Specify a JNDI name of the java.util.concurrent.Executor to delegate to, replacing the default JNDI name "java:comp/DefaultManagedScheduledExecutorService". This can either be a fully qualified JNDI name, or the JNDI name relative to the current environment naming context if "resourceRef" is set to "true". |
|
open fun setJndiTemplate(jndiTemplate: JndiTemplate): Unit
Set the JNDI template to use for JNDI lookups. |
|
open fun setResourceRef(resourceRef: Boolean): Unit
Set whether the lookup occurs in a Java EE container, i.e. if the prefix "java:comp/env/" needs to be added if the JNDI name doesn't already contain it. PersistenceAnnotationBeanPostProcessor's default is "true". |