So do I just create a service using StateObjectFactory interface and
then put then invoke factory in place. Like so:
<contribution configuration-id="tapestry.state.ApplicationObjects">
<state-object name="customer_session" scope="session">
<invoke-factory service-id="MyCustomerSessionFactory"/>
</state-object>
</contribution>
Stanczak Group wrote:
> Should I just create a customer session factory service and use it?
>
> Stanczak Group wrote:
>
>> Is <invoke-factory> the only method? or the best method?
>>
>> Stanczak Group wrote:
>>
>>
>>> I've create a customer state object. I want to initialize it with a sale
>>> rep. I have a sale rep repository that can do that. How do I go about
>>> using the sale rep repository to set the sale rep value?
>>>
>>> ####################################################
>>>
>>> <contribution configuration-id="tapestry.state.ApplicationObjects">
>>> <state-object name="customer_session" scope="session">
>>> <create-instance class="com.carque.CustomerSession"/>
>>> </state-object>
>>> </contribution>
>>>
>>> #########################################################
>>>
>>> <service-point id="saleRepRepository"
>>> interface="com.carque.db.SaleRepRepository"/>
>>>
>>> Rep repository has method getNextSaleRep to set this. It returns a sale
>>> rep or null;
>>>
>>>
>>>
>>>
>>
>>
>
>
--
Justin Stanczak
Stanczak Group
812-735-3600
"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke
..________...............__.................
./ _____/..____..._____/..|_..____...____....
/...\..____/.__.\./....\...__\/.._.\./._..\....
\....\_\..\..___/|...|..\..|.(..<_>.|.<_>..)....
.\______../\___.._\__|../__|..\____/.\____/......
........\/.....\/.....\/..........................
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]