+ Start a Discussion
Keith654Keith654 

Work-arounds to allow extension of product Apex code?

The conventional way of providing extension points to product code (such as a controller class or supporting business logic class) is to define an interface and then allow an extension class that implements this interface to be instantiated by the product code just using the class name supplied as a string. This keeps the product code independent of the extension code (allowing separate compilation and packaging). See the idea Allow Apex code customization of a managed package for a bit more information.

 

This mechanism is not supported in Apex today. It looks like the only general approach is to take a copy of the product code and hack in the changes and accept the many negative consequences.

 

If you have other solutions to this problem - even if they only address specific cases - please reply to this.

 

Thanks,

Keith