Community
Participate
Working Groups
Add validation for: - factory method exists on factory class (and perhaps that it returns an instance of this class) - factory method has zero args Add content assist for: - factory method
A couple of more related validations: -If factoryClass() is other than DEFAULT.class, then factoryMethod() must be specified (i.e. the default value ““ cannot be used.) A validation error is giving saying "If a factory class is specified, a factory method must also be specified." when factoryClass() is DEFAULT.class and factoryMethod() is "". Don't think we should give the validation error with this case based on the spec. -If factoryClass() is DEFAULT.class and factoryMethod() is not ““, then factoryMethod() be a method in this class. No validation error is given when the method given to factoryMethod() does not exist.