Package uk.ac.diamond.daq.mapping.impl
Class MappingExperimentBeanProvider
java.lang.Object
uk.ac.diamond.daq.mapping.impl.MappingExperimentBeanProvider
- All Implemented Interfaces:
IMappingExperimentBeanProvider
@OsgiService(IMappingExperimentBeanProvider.class)
public class MappingExperimentBeanProvider
extends Object
implements IMappingExperimentBeanProvider
An object that wraps a mapping bean. This object is configured in spring.
An instance of this class should be injected rather than the mapping bean directly so
that you get always get a reference to the current mapping bean in the mapping view
even after another bean has been loaded from the filesystem.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidsetSetByView(boolean setByView) Set the flag to say whether the bean has been set by a view
-
Constructor Details
-
MappingExperimentBeanProvider
public MappingExperimentBeanProvider()
-
-
Method Details
-
getMappingExperimentBean
- Specified by:
getMappingExperimentBeanin interfaceIMappingExperimentBeanProvider
-
setMappingExperimentBean
- Specified by:
setMappingExperimentBeanin interfaceIMappingExperimentBeanProvider
-
isSetByView
public boolean isSetByView()- Specified by:
isSetByViewin interfaceIMappingExperimentBeanProvider- Returns:
- Whether the bean has been set by a view (typically by being restored from a saved Eclipse configuration), rather than injected by Spring
-
setSetByView
public void setSetByView(boolean setByView) Description copied from interface:IMappingExperimentBeanProviderSet the flag to say whether the bean has been set by a view- Specified by:
setSetByViewin interfaceIMappingExperimentBeanProvider- Parameters:
setByView- true if set by a view, false otherwise
-