Hi,

I want to provide an Apache Isis application and I expect others to extend
the default entities, I think that the way to acheive this is for
'repository' domain services to be overridden, the new versions will create
the extended custom entities  instead of the default ones.

In the security module this is done by creating an implementation of
'ApplicationUserFactory' that has a method 'newApplicationUser' where you
return your custom ApplicationUser. I can study this to see Apache Isis
knows to use the altenative factory implementation instead of the default
one.

However, I am wondering if the is different way to do this that I can use?
I'm thinking of how the app manifest can be used for this purpose. So the
person wishing to extend creates an new app manifest and changes
isis.properties for the framework to pick this class for startup. This then
hase the effect of injecting alternative repository (or 'factory') classes.
All such factory classes will have to implement one or other interface
obviously.

Thanks
Steve

Reply via email to