Re: EOEnterpriseObjectClazz with interface

2018-11-20 Thread Morris, Mark
Hi Henrique, That’s cool, I hadn’t considered how an enum and an interface could work together like that. ☺ In my particular case this could work. Another idea I had is using the EOEntity’s userInfo dictionary to store the relevant distinguishing information. But it doesn’t seem as clean as ju

Re: EOEnterpriseObjectClazz with interface

2018-11-20 Thread Henrique Prange
Hey Mark, Even if Java allowed you to override static methods of an interface, you would still have problems to discover the classes that implement them in runtime. In the end, it doesn't matter if you remember to implement the static method in your subclass if you forget to call it somewhere e

Re: EOEnterpriseObjectClazz with interface

2018-11-20 Thread Morris, Mark
Hi Johann, Sure! Here’s a hypothetical. Let’s say I have a WorkflowRoutable interface that defines a few instance methods. Now I can implement that interface on EOs that need to participate in workflow, and call those methods in my workflow processing without any trouble. Now let’s say there’s

Re: EOEnterpriseObjectClazz with interface

2018-11-20 Thread Johann Werner
Hi Mark, I think you have to tell us what exactly you want to achieve? Do you have an example? With the EOEnterpriseObjectClazz you have a static instance within your class but this instance is… an instance so you could put an „implements interface“ on it. Or if you just want to know if class