public static class Deletion.Builder extends org.springframework.beans.factory.config.AbstractFactoryBean<Deletion> implements org.springframework.context.ApplicationContextAware
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.| Modifier and Type | Field and Description |
|---|---|
protected AbstractFileSystemService |
afs |
protected OmeroContext |
ctx |
protected ExtendedMetadata |
em |
protected org.springframework.context.ApplicationContext |
specs |
| Constructor and Description |
|---|
Deletion.Builder(AbstractFileSystemService afs,
ExtendedMetadata em) |
| Modifier and Type | Method and Description |
|---|---|
protected Deletion |
createInstance()
Template method that subclasses must override to construct
the object returned by this factory.
|
Class<? extends Deletion> |
getObjectType()
This abstract method declaration mirrors the method in the FactoryBean
interface, for a consistent offering of abstract template methods.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext ctx)
Set the ApplicationContext that this object runs in.
|
protected OmeroContext ctx
protected org.springframework.context.ApplicationContext specs
protected AbstractFileSystemService afs
protected ExtendedMetadata em
public Deletion.Builder(AbstractFileSystemService afs, ExtendedMetadata em)
public void setApplicationContext(org.springframework.context.ApplicationContext ctx)
throws org.springframework.beans.BeansException
org.springframework.context.ApplicationContextAwareInvoked after population of normal bean properties but before an init callback such
as InitializingBean.afterPropertiesSet()
or a custom init-method. Invoked after ResourceLoaderAware.setResourceLoader(org.springframework.core.io.ResourceLoader),
ApplicationEventPublisherAware.setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher) and
MessageSourceAware, if applicable.
setApplicationContext in interface org.springframework.context.ApplicationContextAwarectx - the ApplicationContext object to be used by this objectorg.springframework.context.ApplicationContextException - in case of context initialization errorsorg.springframework.beans.BeansException - if thrown by application context methodsBeanInitializationExceptionprotected Deletion createInstance() throws Exception
org.springframework.beans.factory.config.AbstractFactoryBeanInvoked on initialization of this FactoryBean in case of
a singleton; else, on each AbstractFactoryBean.getObject() call.
public Class<? extends Deletion> getObjectType()
org.springframework.beans.factory.config.AbstractFactoryBeangetObjectType in interface org.springframework.beans.factory.FactoryBean<Deletion>getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<Deletion>null if not known at the time of the callFactoryBean.getObjectType()
Version: 5.1.1-ice35-b43
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.