I'm trying to use something similar to the following:

interface ICache {
   Collection getCached()
}

<service-point id="Cache" interface="ICache">
       <invoke-factory model="user">
           ...
       </invoke-factory>
</service-point>

<service-point id="Cached" interface="java.util.Collection">
       <invoke-factory service-id="hivemind.lib.ServicePropertyFactory">
           <construct service-id="Cache" property="cached"/>
       </invoke-factory>
</service-point>

But for some reason this isn't operating as expected and I get exceptions like:

org.apache.hivemind.ApplicationRuntimeException: Unable to add method java.util.Collection _targetServiceProperty() to class $Collection_108ded07d11: [source error] Method getCached not found in java.util.Collection

javassist.CannotCompileException: [source error] Method getCached not found in java.util.Collection

Am I using ServicePropertyFactory incorrectly? I thought it would do a getCached() call on the Cache service and return that for the Collection...

Thanks,
-Aj




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to