Richard & Jesse,
That did the trick. Thanks!
e.
On Aug 18, 2005, at 11:53 AM, Hensley, Richard wrote:
Eric,
The nature of hivemind is to create a proxy for a service and
inject the
proxy where needed. In this case, the object in your component is
not an
instance of your class, but an instance of a delegating proxy
created by
hivemind and injected into your component.
If you need some custom methods on your service, derive an
interface from
IEngineService with your custom methods, and implement that on your
class.
When you declare your service in hivemind use your new service
interface as
the hivemind service interface.
Richard
-----Original Message-----
From: Eric Schneider [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 18, 2005 8:36 AM
To: Tapestry users
Subject: EngineServiceOuterProxy
Hi,
I'm still very new to hivemind, so bear with me.
I'm injecting a custom IEngineService implementation into a
component. All seems to work fine until I need to call API that is
specific to my service. The problem is due to the component's
service instance variable being an instance of
EngineServiceOuterProxy instead of my custom service.
Casting to my service throws a ClassCastException and changing the
component ivar's type to my custom class (from IEngineService) throws
the following runtime error:
The value obtained using locator 'engine-
service:pdfdirect' (<OuterProxy for engine service 'pdfdirect'>) is
not compatible with the existing property.
Just wondering if someone can offer any suggestions on how I can get
this working?
Thanks!
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]