Issue Details (XML | Word | Printable)

Key: RIO-237
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Dennis Reedy
Reporter: Dennis Reedy
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Rio

Refactor AssociationManagement

Created: 19/Apr/10 09:50 PM   Updated: 21/Apr/10 07:51 PM
Component/s: Associations
Affects Version/s: 4.0
Fix Version/s: 4.1

Time Tracking:
Not Specified


 Description  « Hide
AssociationManagement requires some refactoring, to remove some obsolete methods and to introduce generics to existing methods allowing easier use.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dennis Reedy added a comment - 21/Apr/10 07:51 PM
Methods to be refactored:

(from) Association[] getAssociations();
(to) List<Association<?>> getAssociations();

(from) Association[] getAssociations(String serviceName, String opStringName);
(to) <T> Association<T> getAssociation(Class<T> serviceType, String serviceName, String opStringName);

Removed:

Association[] getAssociations(String opStringName)
Object[] getAssociatedServices(Class serviceType)

Added:

<T> Association<T> addAssociationDescriptor(AssociationDescriptor descriptor);
List<Association<?>> addAssociationDescriptors(AssociationDescriptor... descriptors)