I have multiple implementations of an employee interface - each one representing a particular employee type based on salary classification(HourlyEmployee,MonthlyEmployee etc.)
Each Employee type contains a PayClassification member.The PaymentClassification class has a single member 'schedule'.
A client class ExecutePay instantiates a particular EmployeeType and queries for its PaymentType.
The metadata file is as follows:
TO have PayClassification have a unique value of 'schedule' for each employee type,the easiest solution is to create a unique PayClassification 'resource' corresponding to each employee type and autowire that.
But that is not an ideal extensible solution.
Is there a way to autowire PayClassification with a unique 'schedule' value for every employee type being defined in the system dynamically.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop