Class Deletion.Builder

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<Deletion>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
    Enclosing class:
    Deletion

    public static class Deletion.Builder
    extends org.springframework.beans.factory.config.AbstractFactoryBean<Deletion>
    implements org.springframework.context.ApplicationContextAware
    Inner class which can be used to generate a Deletion. The use of OmeroContext makes creating this object from the command-line somewhat complicated, but with a Deletion.Builder inside of the Spring configuration it should be possible to use:
     Deletion d = ctx.getBean("Deletion", Deletion.class);
     
    anywhere that a new deletion is needed.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ome.io.nio.AbstractFileSystemService afs  
      protected ome.system.OmeroContext ctx  
      protected ExtendedMetadata em  
      • Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

        logger
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder​(ome.io.nio.AbstractFileSystemService afs, ExtendedMetadata em)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected Deletion createInstance()  
      java.lang.Class<? extends Deletion> getObjectType()  
      void setApplicationContext​(org.springframework.context.ApplicationContext ctx)  
      • Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

        afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ctx

        protected ome.system.OmeroContext ctx
      • afs

        protected ome.io.nio.AbstractFileSystemService afs
    • Constructor Detail

      • Builder

        public Builder​(ome.io.nio.AbstractFileSystemService afs,
                       ExtendedMetadata em)
    • Method Detail

      • setApplicationContext

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

        protected Deletion createInstance()
                                   throws java.lang.Exception
        Specified by:
        createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<Deletion>
        Throws:
        java.lang.Exception
      • getObjectType

        public java.lang.Class<? extends Deletion> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<Deletion>
        Specified by:
        getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<Deletion>