Package ome.services.delete
Class Deletion.Builder
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<Deletion>
-
- ome.services.delete.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 ofOmeroContext
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
-
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)
-
-
-
Field Detail
-
ctx
protected ome.system.OmeroContext ctx
-
afs
protected ome.io.nio.AbstractFileSystemService afs
-
em
protected ExtendedMetadata em
-
-
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 interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
createInstance
protected Deletion createInstance() throws java.lang.Exception
- Specified by:
createInstance
in classorg.springframework.beans.factory.config.AbstractFactoryBean<Deletion>
- Throws:
java.lang.Exception
-
-