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
|
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)
Removes a
PropertyChangeListener |
public static <T extends Facility> T getFacility(Class<T> type, Gateway gateway) throws ExecutionException
type
- The type of the Facilitygateway
- Reference to the Gateway
ExecutionException
- If the Facility
can't be retrieved or instantiatedpublic static void clear()
public void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener
listener
- The listenerpublic void removePropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener
listener
- The listenerpublic 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.2.3-ice35-b22
Copyright © 2016 The University of Dundee & Open Microscopy Environment. All Rights Reserved.