Bug 259412 - [api][rseterminal] Decide whether to extract any API from DelegatingTerminalService
Summary: [api][rseterminal] Decide whether to extract any API from DelegatingTerminalS...
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Anna Dushistova CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2008-12-19 15:53 EST by Anna Dushistova CLA
Modified: 2011-05-26 06:57 EDT (History)
0 users

See Also:
mober.at+eclipse: review-


Attachments
patch that makes required refactoring (9.01 KB, patch)
2009-02-02 16:33 EST, Anna Dushistova CLA
mober.at+eclipse: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anna Dushistova CLA 2008-12-19 15:53:41 EST
From bug 240523 comment #8:
> 17 DelegatingTerminalService -- I think that we should probably have an 
>   AbstractDelegatingTerminalService as API in the services plugin, just like
>   we do for the AbstractDelegatingConnectorService, since many clients can
>   re-use this in order to augment behavior of an ITerminalService. Also,
>   this would work around the @noimplement restriction on ITerminalService --
>   clients cannot legally implement ITerminalService. But we may need a bit
>   more thought on this.
Comment 1 Anna Dushistova CLA 2009-02-02 16:33:21 EST
Created attachment 124476 [details]
patch that makes required refactoring

I think it makes sense to have AbstractDelegatingTerminalService as an API.
I'll check the patch in after M5 candidate is out.
Comment 2 Anna Dushistova CLA 2009-02-11 16:54:50 EST
Checked in the patch.
Comment 3 Martin Oberhuber CLA 2009-03-05 05:59:31 EST
To me it seems wrong to have

  AbstractDelegatingTerminalService#getDescription()
  AbstractDelegatingTerminalService#getName()

return a hardcoded name ("Generic Terminal Service"). Shouldn't it return the name of the service that it is delegating to?

Assume that the "real" one is a Telnet Terminal Service, which a client decides to decorate with some specific functionality. IMO the name/description should still be "Telnet Terminal Service", or some other name that the client decides by overriding getDescription() and getName().

Or am I missing something?
Comment 4 Anna Dushistova CLA 2009-03-05 07:01:11 EST
(In reply to comment #3)
> To me it seems wrong to have
> 
>   AbstractDelegatingTerminalService#getDescription()
>   AbstractDelegatingTerminalService#getName()
> 
> return a hardcoded name ("Generic Terminal Service"). Shouldn't it return the
> name of the service that it is delegating to?
> 
> Assume that the "real" one is a Telnet Terminal Service, which a client decides
> to decorate with some specific functionality. IMO the name/description should
> still be "Telnet Terminal Service", or some other name that the client decides
> by overriding getDescription() and getName().
> 
> Or am I missing something?

Martin, you're right. I'll check in the fix today.

Comment 5 Anna Dushistova CLA 2009-03-05 11:29:56 EST
Done.