public abstract class Facility
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a
PropertyChangeListener |
static void |
clear()
Clears the Facility object cache
|
void |
firePropertyChanged(java.beans.PropertyChangeEvent event)
Fires a
PropertyChangeEvent |
void |
firePropertyChanged(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Fires a
PropertyChangeEvent |
static <T extends Facility> |
getFacility(java.lang.Class<T> type,
Gateway gateway)
Get a reference to a certain Facility
|
void |
logDebug(java.lang.Object originator,
java.lang.String msg,
java.lang.Throwable t)
Helper method to simplify logging
|
void |
logError(java.lang.Object originator,
java.lang.String msg,
java.lang.Throwable t)
Helper method to simplify logging
|
void |
logInfo(java.lang.Object originator,
java.lang.String msg,
java.lang.Throwable t)
Helper method to simplify logging
|
void |
logWarn(java.lang.Object originator,
java.lang.String msg,
java.lang.Throwable t)
Helper method to simplify logging
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a
PropertyChangeListener
(Pass null to remove all PropertyChangeListener s) |
public static <T extends Facility> T getFacility(java.lang.Class<T> type, Gateway gateway) throws java.util.concurrent.ExecutionException
public static void clear()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener
listener
- The listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener
(Pass null
to remove all PropertyChangeListener
s)listener
- The listenerpublic void firePropertyChanged(java.beans.PropertyChangeEvent event)
PropertyChangeEvent
event
- The PropertyChangeEventpublic void firePropertyChanged(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
PropertyChangeEvent
propertyName
- The property nameoldValue
- The old valuenewValue
- The new valuepublic void logDebug(java.lang.Object originator, java.lang.String msg, java.lang.Throwable t)
originator
- The source of the log messagemsg
- The messaget
- The exceptionpublic void logInfo(java.lang.Object originator, java.lang.String msg, java.lang.Throwable t)
originator
- The source of the log messagemsg
- The messaget
- The exceptionpublic void logWarn(java.lang.Object originator, java.lang.String msg, java.lang.Throwable t)
originator
- The source of the log messagemsg
- The messaget
- The exceptionpublic void logError(java.lang.Object originator, java.lang.String msg, java.lang.Throwable t)
originator
- The source of the log messagemsg
- The messaget
- The exception
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.