Issue Details (XML | Word | Printable)

Key: HK2-13
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Minor Minor
Assignee: Unassigned
Reporter: jeff_trent
Votes: 0
Watchers: 0

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

FactoryFor should be automatically applied

Created: 06/Jan/11 08:07 AM   Updated: 06/Dec/13 12:25 PM   Resolved: 06/Dec/13 12:25 PM
Component/s: None
Affects Version/s: 2.1.*
Fix Version/s: 2.1.*

Time Tracking:
Not Specified

Participants: jeff_trent and tlcksnyder

 Description  « Hide

Consider this code

public class DomainMBeanAccess implements ConextualFactory<DomainMBean> { ... }

The FactoryFor declaration and use of generics makes this have redundant definitions that can also lead to mismatches / errors.

I propose that the inhabitant generation infrastructure is made aware to look for generics so that FactoryFor becomes optional and implicitly defined, required only in cases where the generic form is not used (i.e., defaulting to Object).

I further would like to see a level of validation that if they are both used, and inconsistent with one another than an error is generated.

tlcksnyder added a comment - 12/Oct/12 04:25 AM

no longer applies.