I am currently working on a task to package a component and its dependencies together and makes a stand-alone component out of it that has all needed stuff included.
I have the situation that I might have user-defined classes which I need to include in this component, too.
I am looking for a way to serialize them in a slim/smart way. These classes have a inheritance hierarchy for instance:
FrameWorkSuper
--------------
UserSuper
UserClass
Is there a way to serialize only the User-defined part of a class to keep the footprint small? Anything that originates from the framework is definitely in the final component included. Thus I want to serialize and load later only the user-defined part of the whole in a way that the class gets that the framework part is also in the package.
Is there a way to achieve that or any recommendation for this task that I should use?