This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 150398 - ClientSOContainer.createConnectData method override clumsy
Summary: ClientSOContainer.createConnectData method override clumsy
Status: RESOLVED FIXED
Alias: None
Product: ECF
Classification: RT
Component: ecf.core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: ecf.core-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-12 11:14 EDT by Scott Lewis CLA
Modified: 2006-11-02 02:56 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Lewis CLA 2006-07-12 11:14:10 EDT
In ClientSOContainer.createConnectData mechanism is clumsy since it requires that a subclass be created to override createConnectData and provide the appropriate authentication data as return parameter.  

Should probably be some sort of delegation so that method can be changed at runtime.
Comment 1 Scott Lewis CLA 2006-11-02 02:56:01 EST
Fixed by adding new interface ISharedObjectContainerClient implemented by ClientSOContainer.  This interface allows setting an IConnectInitiatorPolicy which is consulted during the IContainer.connect call to provide the connect data necessary for authentication.  By setting the IConnectInitiatorPolicy the data passed to the connection can be customized.