Hi,
I am trying to implement a validator with lookupStyle="factory" to minimize object creation using "new". Am able to call factory class and struck up with passing value to it to identify which object need to be created.
I used very basic factory implementation.
1.V*Enum.java for validator types.
2.V*.java abstract class.
3.V*Factory.java calling class from ds.xml and return object for DMI. Use "create" method to return the object.
Some how i need to pass the value in V*Factory.java from *.ds.xml to identify which validator need to be picked.
I am trying to implement a validator with lookupStyle="factory" to minimize object creation using "new". Am able to call factory class and struck up with passing value to it to identify which object need to be created.
I used very basic factory implementation.
1.V*Enum.java for validator types.
2.V*.java abstract class.
3.V*Factory.java calling class from ds.xml and return object for DMI. Use "create" method to return the object.
Some how i need to pass the value in V*Factory.java from *.ds.xml to identify which validator need to be picked.
Comment