For now, we override existing methods to extend CoreContextFactory, but it is not actually safe way to extend it. We could use template method pattern so that users implement only template methods to extend CoreContextFactory.
Description
For now, we override existing methods to extend CoreContextFactory, but it is not actually safe way to extend it. We could use template method pattern so that users implement only template methods to extend CoreContextFactory.
* beforeStartup( ContextFactoryContext )
* afterStartup( ContextFactoryContext )
* beforeShutdown( ContextFactoryContext )
* afterShutdown( ContextFactoryContext )
* beforeSync( ContextFactoryContext )
* afterSync( ContextFactoryContext )
CoreContextFactory now extends AbstractContextFactory with empty hook methods. You can extend AbstractContextFactory and implement these hook methods.