'persistor' became 'persister'
sorry for that folks.
daniel
On 12/22/05,
Daniel Schmid <[EMAIL PROTECTED]> wrote:
hmm, maybe I missed something here...
I have an abstract baseComponent with a property persister and a getter/setter for the persister property.
basePersistenceComponent.cfc
...
<cffunction access="public" name="setPersistor" output="false">
<cfargument name="persistor" type="CF-INF.cfcomponents.persistence.dbpersistor" required="yes"/>
<cfset variables.persistor = arguments.persistor/>
</cffunction>
...
in CS I define a concrete subclass from BaseComponent --> contest.cfc extends="basePersistenceComponent."
in CS XML
<bean id="persister" class="CF-INF.cfcomponents.persistence.dbpersistor ">
<constructor-arg name="datasourceSettings">
<ref bean="datasourceSettings"/>
</constructor-arg>
</bean>
<bean id="contest" class=" CF-INF.cfcomponents.content.contest.contest" singleton="false">
<property name="persister">
<ref bean="persister"/>
</property>
</bean>
but then I get an exception ' The method 'setpersister' could not be found in component E:\bonneville\CF-INF\cfcomponents\content\contest\contest.cfc.
shouldn't that work also from subclasses ?
Daniel
--
Daniel Schmid
Webarchitect
Seeeldstr. 305a
CH-8008 Zürich
www.danielschmid.name
+41 44 389 67 76
--
Daniel Schmid
Webarchitect
Seeeldstr. 305a
CH-8008 Zürich
www.danielschmid.name
+41 44 389 67 76
