Class BaseInitializer<T>

java.lang.Object
org.chenile.core.init.BaseInitializer<T>
Type Parameters:
T - - the class that will be initialized.
All Implemented Interfaces:
InitializingBean
Direct Known Subclasses:
CacheInitializer, ChenileEventInitializer, ChenileSchedulerInitializer, ChenileTrajectoryInitializer

public abstract class BaseInitializer<T> extends Object implements InitializingBean
Extend this to initialize anything like event definitions etc. (not only services)
  • Field Details

  • Constructor Details

    • BaseInitializer

      public BaseInitializer(Resource[] resources)
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface InitializingBean
      Throws:
      Exception
    • init

      protected void init()
    • registerResource

      protected void registerResource(Resource resource)
    • registerModelInChenile

      protected abstract void registerModelInChenile(T resourceModel)
    • populateModelFromResource

      private T populateModelFromResource(Resource chenileResource)
    • populateEventFromInputStream

      private T populateEventFromInputStream(InputStream inputStream) throws Exception
      Throws:
      Exception
    • getModelType

      protected abstract Class<T> getModelType()
    • getExtensionMap

      protected Map<String,T> getExtensionMap(String extensionName)