Let me see if I understand this now, by using the Mach-II Skeleton.
First, I defined my beans in ./config/coldspring.xml. For example, my
coldspring.xml file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<beans default-autowire="no">
<bean id="alarmServiceBean"
class="tickle.cfc.tickle.alarm.AlarmService">
<property name="alarmDAO"><ref bean="alarmDAO" /></property>
</bean>
<bean id="alarmDAO" class="tickle.cfc.tickle.alarm.AlarmDAO"></bean>
</beans>
Then I define my Listener and add the "depends" attribute to my
cfcomponent tag. In this example, I created a listener called
AlarmListener and it starts off like this:
<cfcomponent
displayname="AlarmListener"
extends="MachII.framework.Listener"
depends="alarmServiceBean"
output="false"
hint="Alarm Listener for MachII Framework.">
So MachII will search ColdSpringFactory for the "alarmServiceBean" and
inject it into the AlarmListener.
By using cfdump, I can see that the function "getAlarmServiceBean"
returns an AlarmServiceBean.
<cfdump var="#application.tickle.apploader.getAppManager
().getListenerManager().getListener
('alarmListener').getAlarmServiceBean()#" />
How am I doing so far?
Am I on track?
When I do a cfdump of just the alarmListener, I do not see the
getAlarmServiceBean method listed.
<cfdump var="#application.tickle.apploader.getAppManager
().getListenerManager().getListener('alarmListener')# />
Why is that?
Thanks,