Support for Common Resource Infrastructure (GLASSFISH-19172)

[GLASSFISH-19370] Changes to support Common Resource Infrastructure Created: 27/Nov/12  Updated: 12/Dec/12  Resolved: 12/Dec/12

Status: Closed
Project: glassfish
Component/s: jca
Affects Version/s: None
Fix Version/s: 4.0

Type: Sub-task Priority: Major
Reporter: naman_mehta Assignee: naman_mehta
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Comment by naman_mehta [ 27/Nov/12 ]

1. Added 'ResourceDescriptor' which extends 'Descriptor' and moved resource specific methods from Descriptor class to ResourceDescriptor.
2. Removed method like combineMailSessionDescriptors, combineConnectorResourceDefinitionDescriptors etc and converted them to generic method combineResourceDescriptors(JndiNameEnvironment env, JavaEEResourceType javaEEResourceType).
3. CommonResourceFunctionality renamed to ResourceDescriptorRegistry
4. Removed separate copy of descriptors in CommonResourceDesc and CommonResourceBundleDesc. Used it from ResourceDescriptorRegistry.
5. Keep Map<ResourceType, Set<ResourceDescriptor>> in ResourceDescriptorRegistry to removed resource type specific methods.
6. Introuduced 2 new methods 1) getAllResourceDescriptors() 2) getAllResourceDesctiprots(Class givenClass) in ResourceDescriptorRegistry.
7. Removed JavaEEResourceType.ALL and replaced code with new methods introuduced in above 4.

Comment by naman_mehta [ 12/Dec/12 ]

Made all required changes. Review is also done on the same.

Generated at Tue Dec 01 04:15:30 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.