« Return to Thread: [vysper] binding multiple resources per session

Re: [vysper] binding multiple resources per session

by Gerolf Seitz :: Rate this Message:

Reply to Author | View in Thread

On Mon, Apr 21, 2008 at 11:16 PM, Gerolf Seitz <gerolf.seitz@...>
wrote:

> interface Resource extends Entity {
>   public boolean isConnected() { ...};
>   public boolean isAvailable() {...};
>   public boolean isInterested() {...};
> ...
> }
>

actually, i think this is not a good idea.
it doesn't fit how we use Entity now.
this information should rather be held in sessioncontext or resourceregistry
alongside maybe with convenience methods like
Iterator<Entity> getInterestedResourceIterator();

  Gerolf

 « Return to Thread: [vysper] binding multiple resources per session

LightInTheBox - Buy quality products at wholesale price!