Class CryptodocSwitchableApplicationContextFactory

  • All Implemented Interfaces:
    EventListener, ApplicationContextFactory, PropertyBackedBean, PropertyBackedBeanState, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>

    public class CryptodocSwitchableApplicationContextFactory
    extends SwitchableApplicationContextFactory
    SwitchableApplicationContextFactory that only allows the subsystem to be switched if the current subsystem is the unencrypted content store. When an attempt is made to switch away from any other store (e.g. the encrypted store) then nothing happens. This is achieved by returning false for isUpdateable(String) calls when the current sourceBeanName is that of the unencrypted content store's subsystem.
    Author:
    Matt Ward
    • Constructor Detail

      • CryptodocSwitchableApplicationContextFactory

        public CryptodocSwitchableApplicationContextFactory()