public class CompatibilityServiceImpl extends ProjectExclusiveExtension<CompatibilityMode,CompatibilityModeFactory> implements CompatibilityService
Modifier and Type | Class and Description |
---|---|
static class |
CompatibilityServiceImpl.CompatibilityModeExtension
CompatibilityMode extension |
Modifier and Type | Field and Description |
---|---|
static String |
EXTENSION_ID
The extension ID
|
Constructor and Description |
---|
CompatibilityServiceImpl()
default service constructor, also adds a listener to the alignment
service
|
Modifier and Type | Method and Description |
---|---|
void |
addCompatibilityListener(CompatibilityServiceListener listener)
adds a listener to the service
|
void |
compatibilityModeChanged()
called when the mode is changed (externally, e.g.
|
protected String |
getDefaultId()
Get the identifier of the default factory to select, if no configuration
is present.
|
protected CompatibilityModeFactory |
getFallbackFactory()
Get the factory to use when no extensions are configured
|
void |
removeCompatibilityListener(CompatibilityServiceListener listener)
removes a listener from the service
|
getDefaultFactory, getInitialFactory, isLoadAllowed, isSaveAllowed
addListener, getCurrent, getCurrentDefinition, getFactories, getFactories, getFactory, getFactoryCollections, getLastDefinition, init, isAllowReactivation, removeCurrent, removeListener, representsCurrent, setAllowReactivation, setCurrent, setCurrent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final String EXTENSION_ID
public CompatibilityServiceImpl()
protected String getDefaultId()
ProjectExclusiveExtension
getDefaultId
in class ProjectExclusiveExtension<CompatibilityMode,CompatibilityModeFactory>
protected CompatibilityModeFactory getFallbackFactory()
ProjectExclusiveExtension
getFallbackFactory
in class ProjectExclusiveExtension<CompatibilityMode,CompatibilityModeFactory>
public void addCompatibilityListener(CompatibilityServiceListener listener)
CompatibilityService
addCompatibilityListener
in interface CompatibilityService
listener
- the listener to addCompatibilityService.addCompatibilityListener(eu.esdihumboldt.hale.ui.common.service.compatibility.CompatibilityServiceListener)
public void removeCompatibilityListener(CompatibilityServiceListener listener)
CompatibilityService
removeCompatibilityListener
in interface CompatibilityService
listener
- the listener to removeCompatibilityService.removeCompatibilityListener(CompatibilityServiceListener
listener)
public void compatibilityModeChanged()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a