public abstract class Facility extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a
PropertyChangeListener |
static void |
clear()
Clears the Facility object cache
|
void |
firePropertyChanged(PropertyChangeEvent event)
Fires a
PropertyChangeEvent |
void |
firePropertyChanged(String propertyName,
Object oldValue,
Object newValue)
Fires a
PropertyChangeEvent |
static <T extends Facility> |
getFacility(Class<T> type,
Gateway gateway)
Get a reference to a certain Facility
|
void |
logDebug(Object originator,
String msg,
Throwable t)
Helper method to simplify logging
|
void |
logError(Object originator,
String msg,
Throwable t)
Helper method to simplify logging
|
void |
logInfo(Object originator,
String msg,
Throwable t)
Helper method to simplify logging
|
void |
logWarn(Object originator,
String msg,
Throwable t)
Helper method to simplify logging
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
|
public static <T extends Facility> T getFacility(Class<T> type, Gateway gateway) throws ExecutionException
type - The type of the Facilitygateway - Reference to the GatewayExecutionException - If the Facility can't be retrieved or instantiatedpublic static void clear()
public void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListenerlistener - The listenerpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener - The listenerpublic void firePropertyChanged(PropertyChangeEvent event)
PropertyChangeEventevent - The PropertyChangeEventpublic void firePropertyChanged(String propertyName, Object oldValue, Object newValue)
PropertyChangeEventpropertyName - The property nameoldValue - The old valuenewValue - The new valuepublic void logDebug(Object originator, String msg, Throwable t)
originator - The source of the log messagemsg - The messaget - The exceptionpublic void logInfo(Object originator, String msg, Throwable t)
originator - The source of the log messagemsg - The messaget - The exceptionpublic void logWarn(Object originator, String msg, Throwable t)
originator - The source of the log messagemsg - The messaget - The exception
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.