Class EntityProviderAutoRegistrar

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class EntityProviderAutoRegistrar
    extends Object
    implements org.springframework.context.ApplicationContextAware
    Finds and registers any EntityProvider implementation which also implements AutoRegisterEntityProvider
    Author:
    Antranig Basman (antranig@caret.cam.ac.uk), Aaron Zeckoski (aaronz@vt.edu)
    • Constructor Detail

      • EntityProviderAutoRegistrar

        protected EntityProviderAutoRegistrar()
      • EntityProviderAutoRegistrar

        public EntityProviderAutoRegistrar​(EntityProviderManager entityProviderManager)
        Construct the auto-registrar which will search the spring app context and will register all entity providers found in it which implement AutoRegisterEntityProvider
        Parameters:
        entityProviderManager - the entityProviderManager service which is used for registration
    • Method Detail

      • setEntityProviderManager

        public void setEntityProviderManager​(EntityProviderManager entityProviderManager)
      • init

        public void init()
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext context)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException