automation.xml 6.58 KB
Newer Older
Peter Harrison's avatar
Peter Harrison committed
1 2 3 4 5 6
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
	xmlns:jee="http://www.springframework.org/schema/jee" xmlns:jms="http://www.springframework.org/schema/jms"
	xmlns:util="http://www.springframework.org/schema/util" xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
7
	http://www.springframework.org/schema/beans/spring-beans-3.1.xsd 
Peter Harrison's avatar
Peter Harrison committed
8 9 10
	http://www.springframework.org/schema/tx 
	http://www.springframework.org/schema/tx/spring-tx.xsd 
	http://www.springframework.org/schema/jee
11
	http://www.springframework.org/schema/jee/spring-jee-3.1.xsd
Peter Harrison's avatar
Peter Harrison committed
12
	http://www.springframework.org/schema/jms 
13
    http://www.springframework.org/schema/jms/spring-jms-3.1.xsd
Peter Harrison's avatar
Peter Harrison committed
14
    http://www.springframework.org/schema/util 
15
	http://www.springframework.org/schema/util/spring-util-3.1.xsd
Peter Harrison's avatar
Peter Harrison committed
16
	http://www.springframework.org/schema/context
17
    http://www.springframework.org/schema/context/spring-context-3.1.xsd">
Peter Harrison's avatar
Peter Harrison committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58

	<bean id="variableInterpreter" class="nz.net.orcon.kanban.automation.VariableInterpreter"/>
	
	<bean id="listTools" class="nz.net.orcon.kanban.tools.ListTools" >
		<property name="dateInterpreter" ref="dateInterpreter" />
	</bean>
	 
	<bean id="cardTools" class="nz.net.orcon.kanban.tools.CardToolsImpl" />
	 
	<bean id="dateInterpreter" class="nz.net.orcon.kanban.tools.DateInterpreter" >
		<property name="complexDateConverters">
			<list>
				<bean class="nz.net.orcon.kanban.tools.PlusDateConverter" />
				<bean class="nz.net.orcon.kanban.tools.SubtractDateConverter" />
				<bean class="nz.net.orcon.kanban.tools.NowDateConverter" />
			</list>
		</property>
	</bean> 
	
	<!-- AUTOMATION ENGINE & SERVICES -->

	<bean id="automationEngine" class="nz.net.orcon.kanban.automation.AutomationEngine">
		<property name="plugins">
			<map>
				<entry key="execute" value-ref="executionPlugin" />
				<entry key="move" value-ref="movePlugin" />
				<entry key="object" value-ref="objectMapperPlugin" />
				<entry key="map" value-ref="mapMapperPlugin" />
				<entry key="xml" value-ref="xStreamPlugin" />
				<entry key="extract" value-ref="extractPlugin" />
				<entry key="script" value-ref="scriptPlugin" />
				<entry key="spawn" value-ref="spawnPlugin" />
				<entry key="persist" value-ref="persistPlugin" />
				<entry key="template" value-ref="templatePlugin" />
			</map>
		</property>
	</bean>

	<bean id="executionPlugin" class="nz.net.orcon.kanban.automation.plugin.ExecutionPlugin">
		<property name="services">
			<map>
59
				<!--<entry key="smsPlugin" value-ref="bulletinAdvancedEndpoint" /> -->
Peter Harrison's avatar
Peter Harrison committed
60 61 62 63 64 65 66 67 68 69
				<entry key="cardController" value-ref="cardController" />
				<entry key="notificationController" value-ref="notificationController" />
				<entry key="phaseController" value-ref="phaseController" />								
				<entry key="stringify" value-ref="stringify" />				
				<entry key="emailSenderAction" value-ref="emailSenderAction" />
				<entry key="emailReceiverAction" value-ref="emailReceiverAction" />
				<entry key="uniqueIdAction" value-ref="uniqueIdAction" />
				<entry key="dateTool" value-ref="dateTool" />
				<entry key="createVariableAction" value-ref="createVariableAction" />
				<entry key="clusterManager" value-ref="clusterManager" />
70
				<entry key="awsAutomation" value-ref="awsAutomationAction" />
Peter Harrison's avatar
Peter Harrison committed
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
			</map>
		</property>
	</bean>
	
	<bean id="persistPlugin" class="nz.net.orcon.kanban.automation.plugin.PersistPlugin" />
	
	<bean id="movePlugin" class="nz.net.orcon.kanban.automation.plugin.MovePlugin" />

	<bean id="objectMapperPlugin" class="nz.net.orcon.kanban.automation.plugin.ObjectMapperPlugin" />

	<bean id="mapMapperPlugin" class="nz.net.orcon.kanban.automation.plugin.MapMapperPlugin" />

	<bean id="xStreamPlugin" class="nz.net.orcon.kanban.automation.plugin.XStreamPlugin" />
	
	<bean id="extractPlugin" class="nz.net.orcon.kanban.automation.plugin.ExtractPlugin" />
	
	<bean id="propertyPlugin" class="nz.net.orcon.kanban.automation.plugin.PropertyMapperPlugin" />
	
	<bean id="scriptPlugin" class="nz.net.orcon.kanban.automation.plugin.ScriptPlugin" />
	
	<bean id="spawnPlugin" class="nz.net.orcon.kanban.automation.plugin.SpawnPlugin" />
	
	<bean id="templatePlugin" class="nz.net.orcon.kanban.automation.plugin.TemplatePlugin" />	

	<bean id="jcrObserver" class="nz.net.orcon.kanban.automation.JcrObserver"/>

	<bean id="timerManager" class="nz.net.orcon.kanban.automation.TimerManager"/>
	
	<bean id="emailSenderAction" class="nz.net.orcon.kanban.automation.actions.EmailSenderAction" />
	
	<bean id="uniqueIdAction" class="nz.net.orcon.kanban.automation.actions.UniqueIdAction" />
	
	<bean id="emailReceiverAction" class="nz.net.orcon.kanban.automation.actions.EmailReceiverAction" />
	
	<bean id="dateTool" class="nz.net.orcon.kanban.automation.actions.DateTool" />
			
	<bean id="stringify" class="nz.net.orcon.kanban.automation.actions.StringUtils"/>
	
	<bean id="createVariableAction" class="nz.net.orcon.kanban.automation.actions.CreateVariableAction"/>
	
111
	<!-- 
Peter Harrison's avatar
Peter Harrison committed
112 113 114 115 116 117 118 119 120
	<bean id="bulletinAdvancedEndpoint"
		class="nz.net.orcon.kanban.automation.actions.BulletinAdvancedSmsEndpoint">
		<property name="user" value="${bulletin.username}" />
		<property name="password" value="${bulletin.password}" />
		<property name="url" value="${bulletin.url}" />
		<property name="from" value="${bulletin.from}" />
		<property name="rateCode" value="${bulletin.ratecode}" />
		<property name="base64" ref="stringEncryptor" />
	</bean>
121
	 -->
Peter Harrison's avatar
Peter Harrison committed
122 123 124 125 126 127 128 129 130 131

	<bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory" />

	<bean id="xstreamMarshaller" class="org.springframework.oxm.xstream.XStreamMarshaller">
		<property name="aliases">
			<props>
			</props>
		</property>
	</bean>
	
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
	<bean id="awsCredential"  class="com.amazonaws.auth.BasicAWSCredentials">
		<constructor-arg value="${aws.keyid}"/>
		<constructor-arg value="${aws.secret}"/>
	</bean>
	
	<bean id="awsLoadBalanceClient" class="com.amazonaws.services.elasticloadbalancing.AmazonElasticLoadBalancingClient">
		<constructor-arg ref="awsCredential"/>
	</bean>

	<bean id="awsIdentityClient" class="com.amazonaws.services.identitymanagement.AmazonIdentityManagementClient">
		<constructor-arg ref="awsCredential"/>
	</bean>
	
	<bean id="awsCloudFrontClient" class="com.amazonaws.services.cloudfront.AmazonCloudFrontClient">
		<constructor-arg ref="awsCredential"/>
	</bean>
	
	<bean id="awsAutomationAction" class="nz.net.orcon.kanban.automation.actions.AwsAutomationAction"/>

Peter Harrison's avatar
Peter Harrison committed
151
	<!-- Cluster Management -->
152
	<bean id="clusterManager" class="nz.net.orcon.kanban.automation.ClusterManagerImpl"/>
Peter Harrison's avatar
Peter Harrison committed
153 154

</beans>