> -----Original Message-----
> From: smartfrog-developer-admin@... =
> developer-admin@...] On Behalf Of Steve Loughran
> Sent: 18 May 2004 11:25
> To: smartfrog-developer
> Subject: [Smartfrog-developer] do all components have to export a new
> I'm confused. The reason we dont push Prim through rmic is because =
> component is meant to implement its own interface, no?
Not really, it is because every component needs to have its own stubs =
implementing, at least, Prim interface so that the framework can access =
to its standard lifecycle methods. Then when you run RMIC for the =
component all the necessary stubs are generated automatically.=20
A similar example to the one you described is in examples/counter. Its =
interface does not add any new method and its class is added in =
rmitargetsExamples so that the appropriate stubs are created.
The stubs are only needed is the component is going to be accessed =
remotely. If a component does not want to be registered in the RMI =
server it can add "sfExport false;" to its description and then it does =
not need remote stubs.
> But if I look at services.filesystems.Touch, we clearly have a class
> that extends PrimImpl and does not add any new remotable interface for
> touching files.
That class is incorrect. It should be:
public class TouchFile extends PrimImpl implements Prim=20
You will need to add that class to rmitagets if it will be accessed =
> Is this a deficiency in the class, or a defect in my understanding
I hope this clarifies the matter. Let me know if it is not clear enough.