SPRNET-1539 Quartz.NET 2.1 support

This commit is contained in:
Marko Lahma
2013-01-12 10:54:10 +02:00
parent e4a59c6dd4
commit ebfe101ad0
93 changed files with 1217 additions and 53683 deletions

View File

@@ -78,7 +78,7 @@
<ItemGroup>
<Reference Include="C5">
<Name>C5</Name>
<HintPath>..\..\..\..\lib\Quartz20\net\3.5\C5.dll</HintPath>
<HintPath>..\..\..\..\lib\Quartz21\net\3.5\C5.dll</HintPath>
</Reference>
<Reference Include="Common.Logging">
<Name>Common.Logging</Name>
@@ -86,15 +86,15 @@
</Reference>
<Reference Include="Quartz">
<Name>Quartz</Name>
<HintPath>..\..\..\..\lib\Quartz20\net\3.5\Quartz.dll</HintPath>
<HintPath>..\..\..\..\lib\Quartz21\net\3.5\Quartz.dll</HintPath>
</Reference>
<Reference Include="Spring.Core">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\bin\net\3.5\debug\Spring.Core.dll</HintPath>
</Reference>
<Reference Include="Spring.Scheduling.Quartz20">
<Reference Include="Spring.Scheduling.Quartz21">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\bin\net\3.5\debug\Spring.Scheduling.Quartz20.dll</HintPath>
<HintPath>..\..\..\..\bin\net\3.5\debug\Spring.Scheduling.Quartz21.dll</HintPath>
</Reference>
<Reference Include="System">
<Name>System</Name>

View File

@@ -96,7 +96,7 @@
<ItemGroup>
<Reference Include="C5">
<Name>C5</Name>
<HintPath>..\..\..\..\lib\Quartz20\net\3.5\C5.dll</HintPath>
<HintPath>..\..\..\..\lib\Quartz21\net\3.5\C5.dll</HintPath>
</Reference>
<Reference Include="Common.Logging">
<Name>Common.Logging</Name>
@@ -104,7 +104,7 @@
</Reference>
<Reference Include="Quartz">
<Name>Quartz</Name>
<HintPath>..\..\..\..\lib\Quartz20\net\4.0\Quartz.dll</HintPath>
<HintPath>..\..\..\..\lib\Quartz21\net\4.0\Quartz.dll</HintPath>
</Reference>
<Reference Include="Spring.Core">
<SpecificVersion>False</SpecificVersion>
@@ -112,7 +112,7 @@
</Reference>
<Reference Include="Spring.Scheduling.Quartz">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\bin\net\4.0\debug\Spring.Scheduling.Quartz20.dll</HintPath>
<HintPath>..\..\..\..\bin\net\4.0\debug\Spring.Scheduling.Quartz21.dll</HintPath>
</Reference>
<Reference Include="System">
<Name>System</Name>

View File

@@ -2,7 +2,7 @@
<objects xmlns="http://www.springframework.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.net http://www.springframework.net/xsd/spring-objects.xsd">
<object name="exampleJob" type="Spring.Scheduling.Quartz.JobDetailObject, Spring.Scheduling.Quartz20">
<object name="exampleJob" type="Spring.Scheduling.Quartz.JobDetailObject, Spring.Scheduling.Quartz21">
<property name="JobType" value="Spring.Scheduling.Quartz.Example.ExampleJob, Spring.Scheduling.Quartz.Example" />
<!-- We can inject values throgh JobDataMap -->
<property name="JobDataAsMap">
@@ -17,20 +17,20 @@
<property name="UserName" value="Gabriel" />
</object>
<object id="jobDetail" type="Spring.Scheduling.Quartz.MethodInvokingJobDetailFactoryObject, Spring.Scheduling.Quartz20">
<object id="jobDetail" type="Spring.Scheduling.Quartz.MethodInvokingJobDetailFactoryObject, Spring.Scheduling.Quartz21">
<!-- We don't actually need to implement IJob as we can use delegation -->
<property name="TargetObject" ref="adminService" />
<property name="TargetMethod" value="DoAdminWork" />
</object>
<object id="jobDetailNonConcurrent" type="Spring.Scheduling.Quartz.MethodInvokingJobDetailFactoryObject, Spring.Scheduling.Quartz20">
<object id="jobDetailNonConcurrent" type="Spring.Scheduling.Quartz.MethodInvokingJobDetailFactoryObject, Spring.Scheduling.Quartz21">
<property name="targetObject" ref="adminService" />
<property name="targetMethod" value="DoAdminWork" />
<!-- Automatic IStatefulJob wrapping -->
<property name="concurrent" value="false" />
</object>
<object id="simpleTrigger" type="Spring.Scheduling.Quartz.SimpleTriggerObject, Spring.Scheduling.Quartz20">
<object id="simpleTrigger" type="Spring.Scheduling.Quartz.SimpleTriggerObject, Spring.Scheduling.Quartz21">
<!-- see the example of method invoking job above -->
<property name="jobDetail" ref="jobDetail" />
<!-- 5 seconds -->
@@ -40,13 +40,13 @@
</object>
<object id="cronTrigger" type="Spring.Scheduling.Quartz.CronTriggerObject, Spring.Scheduling.Quartz20">
<object id="cronTrigger" type="Spring.Scheduling.Quartz.CronTriggerObject, Spring.Scheduling.Quartz21">
<property name="jobDetail" ref="exampleJob" />
<!-- run every 20 second of minute -->
<property name="cronExpressionString" value="0/20 * * * * ?" />
</object>
<object type="Spring.Scheduling.Quartz.SchedulerFactoryObject, Spring.Scheduling.Quartz20">
<object type="Spring.Scheduling.Quartz.SchedulerFactoryObject, Spring.Scheduling.Quartz21">
<property name="triggers">
<list>
<ref object="cronTrigger" />