Java Doc for MethodInvokingJobDetailFactoryBean.java in  » J2EE » spring-framework-2.0.6 » org » springframework » scheduling » quartz » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » spring framework 2.0.6 » org.springframework.scheduling.quartz 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.springframework.util.MethodInvoker
      org.springframework.beans.support.ArgumentConvertingMethodInvoker
         org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean

MethodInvokingJobDetailFactoryBean
public class MethodInvokingJobDetailFactoryBean extends ArgumentConvertingMethodInvoker implements FactoryBean,BeanNameAware,BeanClassLoaderAware,BeanFactoryAware,InitializingBean(Code)
org.springframework.beans.factory.FactoryBean that exposes a org.quartz.JobDetail object which delegates job execution to a specified (static or non-static) method. Avoids the need for implementing a one-line Quartz Job that just invokes an existing service method on a Spring-managed target bean.

Inherits common configuration properties from the MethodInvoker base class, such as MethodInvokingJobDetailFactoryBean.setTargetObject "targetObject" and MethodInvokingJobDetailFactoryBean.setTargetMethod "targetMethod" , adding support for lookup of the target bean by name through the MethodInvokingJobDetailFactoryBean.setTargetBeanName "targetBeanName" property (as alternative to specifying a "targetObject" directly, allowing for non-singleton target objects).

Supports both concurrently running jobs and non-currently running jobs through the "concurrent" property. Jobs created by this MethodInvokingJobDetailFactoryBean are by default volatile and durable (according to Quartz terminology).

NOTE: JobDetails created via this FactoryBean are not serializable and thus not suitable for persistent job stores. You need to implement your own Quartz Job as a thin wrapper for each case where you want a persistent job to delegate to a specific service method.
author:
   Juergen Hoeller
author:
   Alef Arendsen
since:
   18.02.2004
See Also:   MethodInvokingJobDetailFactoryBean.setTargetBeanName
See Also:   MethodInvokingJobDetailFactoryBean.setTargetObject
See Also:   MethodInvokingJobDetailFactoryBean.setTargetMethod
See Also:   MethodInvokingJobDetailFactoryBean.setConcurrent


Inner Class :public static class MethodInvokingJob extends QuartzJobBean
Inner Class :public static class StatefulMethodInvokingJob extends MethodInvokingJob implements StatefulJob



Method Summary
public  voidafterPropertiesSet()
    
public  ObjectgetObject()
    
public  ClassgetObjectType()
    
public  ClassgetTargetClass()
     Overridden to support the MethodInvokingJobDetailFactoryBean.setTargetBeanName "targetBeanName" feature.
public  ObjectgetTargetObject()
     Overridden to support the MethodInvokingJobDetailFactoryBean.setTargetBeanName "targetBeanName" feature.
public  booleanisSingleton()
    
protected  voidpostProcessJobDetail(JobDetail jobDetail)
     Callback for post-processing the JobDetail to be exposed by this FactoryBean.

The default implementation is empty.

protected  ClassresolveClassName(String className)
    
public  voidsetBeanClassLoader(ClassLoader classLoader)
    
public  voidsetBeanFactory(BeanFactory beanFactory)
    
public  voidsetBeanName(String beanName)
    
public  voidsetConcurrent(boolean concurrent)
     Specify whether or not multiple jobs should be run in a concurrent fashion.
public  voidsetGroup(String group)
     Set the group of the job.
public  voidsetJobListenerNames(String[] names)
     Set a list of JobListener names for this job, referring to non-global JobListeners registered with the Scheduler.
public  voidsetName(String name)
     Set the name of the job.
public  voidsetTargetBeanName(String targetBeanName)
     Set the name of the target bean in the Spring BeanFactory.

This is an alternative to specifying MethodInvokingJobDetailFactoryBean.setTargetObject "targetObject" , allowing for non-singleton beans to be invoked.




Method Detail
afterPropertiesSet
public void afterPropertiesSet() throws ClassNotFoundException, NoSuchMethodException(Code)



getObject
public Object getObject()(Code)



getObjectType
public Class getObjectType()(Code)



getTargetClass
public Class getTargetClass()(Code)
Overridden to support the MethodInvokingJobDetailFactoryBean.setTargetBeanName "targetBeanName" feature.



getTargetObject
public Object getTargetObject()(Code)
Overridden to support the MethodInvokingJobDetailFactoryBean.setTargetBeanName "targetBeanName" feature.



isSingleton
public boolean isSingleton()(Code)



postProcessJobDetail
protected void postProcessJobDetail(JobDetail jobDetail)(Code)
Callback for post-processing the JobDetail to be exposed by this FactoryBean.

The default implementation is empty. Can be overridden in subclasses.
Parameters:
  jobDetail - the JobDetail prepared by this FactoryBean




resolveClassName
protected Class resolveClassName(String className) throws ClassNotFoundException(Code)



setBeanClassLoader
public void setBeanClassLoader(ClassLoader classLoader)(Code)



setBeanFactory
public void setBeanFactory(BeanFactory beanFactory)(Code)



setBeanName
public void setBeanName(String beanName)(Code)



setConcurrent
public void setConcurrent(boolean concurrent)(Code)
Specify whether or not multiple jobs should be run in a concurrent fashion. The behavior when one does not want concurrent jobs to be executed is realized through adding the StatefulJob interface. More information on stateful versus stateless jobs can be found here.

The default setting is to run jobs concurrently.




setGroup
public void setGroup(String group)(Code)
Set the group of the job.

Default is the default group of the Scheduler.
See Also:   org.quartz.JobDetail.setGroup
See Also:   org.quartz.Scheduler.DEFAULT_GROUP




setJobListenerNames
public void setJobListenerNames(String[] names)(Code)
Set a list of JobListener names for this job, referring to non-global JobListeners registered with the Scheduler.

A JobListener name always refers to the name returned by the JobListener implementation.
See Also:   SchedulerFactoryBean.setJobListeners
See Also:   org.quartz.JobListener.getName




setName
public void setName(String name)(Code)
Set the name of the job.

Default is the bean name of this FactoryBean.
See Also:   org.quartz.JobDetail.setName




setTargetBeanName
public void setTargetBeanName(String targetBeanName)(Code)
Set the name of the target bean in the Spring BeanFactory.

This is an alternative to specifying MethodInvokingJobDetailFactoryBean.setTargetObject "targetObject" , allowing for non-singleton beans to be invoked. Note that specified "targetObject" and MethodInvokingJobDetailFactoryBean.setTargetClass "targetClass" values will override the corresponding effect of this "targetBeanName" setting (i.e. statically pre-define the bean type or even the bean object).




Methods inherited from org.springframework.beans.support.ArgumentConvertingMethodInvoker
protected Method findMatchingMethod()(Code)(Java Doc)
protected TypeConverter getDefaultTypeConverter()(Code)(Java Doc)
public TypeConverter getTypeConverter()(Code)(Java Doc)
public void registerCustomEditor(Class requiredType, PropertyEditor propertyEditor)(Code)(Java Doc)
public void setTypeConverter(TypeConverter typeConverter)(Code)(Java Doc)

Methods inherited from org.springframework.util.MethodInvoker
protected Method findMatchingMethod()(Code)(Java Doc)
public Object[] getArguments()(Code)(Java Doc)
public Method getPreparedMethod() throws IllegalStateException(Code)(Java Doc)
public Class getTargetClass()(Code)(Java Doc)
public String getTargetMethod()(Code)(Java Doc)
public Object getTargetObject()(Code)(Java Doc)
public Object invoke() throws InvocationTargetException, IllegalAccessException(Code)(Java Doc)
public boolean isPrepared()(Code)(Java Doc)
public void prepare() throws ClassNotFoundException, NoSuchMethodException(Code)(Java Doc)
protected Class resolveClassName(String className) throws ClassNotFoundException(Code)(Java Doc)
public void setArguments(Object[] arguments)(Code)(Java Doc)
public void setStaticMethod(String staticMethod)(Code)(Java Doc)
public void setTargetClass(Class targetClass)(Code)(Java Doc)
public void setTargetMethod(String targetMethod)(Code)(Java Doc)
public void setTargetObject(Object targetObject)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.