Package omero.gateway.facility
Class Facility
- java.lang.Object
-
- omero.gateway.facility.Facility
-
- Direct Known Subclasses:
AdminFacility
,BrowseFacility
,DataManagerFacility
,LoadFacility
,MetadataFacility
,RawDataFacility
,ROIFacility
,SearchFacility
,TablesFacility
,TransferFacility
public abstract class Facility extends java.lang.Object
A Facility encapsulates a certain set of functionality for dealing with an OMERO server- Since:
- 5.1
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds aPropertyChangeListener
static void
clear()
Clears the Facility object cachevoid
firePropertyChanged(java.beans.PropertyChangeEvent event)
Fires aPropertyChangeEvent
void
firePropertyChanged(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
Fires aPropertyChangeEvent
static <T extends Facility>
TgetFacility(java.lang.Class<T> type, Gateway gateway)
Get a reference to a certain Facilityvoid
logDebug(java.lang.Object originator, java.lang.String msg, java.lang.Throwable t)
Helper method to simplify loggingvoid
logError(java.lang.Object originator, java.lang.String msg, java.lang.Throwable t)
Helper method to simplify loggingvoid
logInfo(java.lang.Object originator, java.lang.String msg, java.lang.Throwable t)
Helper method to simplify loggingvoid
logWarn(java.lang.Object originator, java.lang.String msg, java.lang.Throwable t)
Helper method to simplify loggingvoid
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes aPropertyChangeListener
(Passnull
to remove allPropertyChangeListener
s)
-
-
-
Method Detail
-
getFacility
public static <T extends Facility> T getFacility(java.lang.Class<T> type, Gateway gateway) throws java.util.concurrent.ExecutionException
Get a reference to a certain Facility
-
clear
public static void clear()
Clears the Facility object cache
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds aPropertyChangeListener
- Parameters:
listener
- The listener
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes aPropertyChangeListener
(Passnull
to remove allPropertyChangeListener
s)- Parameters:
listener
- The listener
-
firePropertyChanged
public void firePropertyChanged(java.beans.PropertyChangeEvent event)
Fires aPropertyChangeEvent
- Parameters:
event
- The PropertyChangeEvent
-
firePropertyChanged
public void firePropertyChanged(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
Fires aPropertyChangeEvent
- Parameters:
propertyName
- The property nameoldValue
- The old valuenewValue
- The new value
-
logDebug
public void logDebug(java.lang.Object originator, java.lang.String msg, java.lang.Throwable t)
Helper method to simplify logging- Parameters:
originator
- The source of the log messagemsg
- The messaget
- The exception
-
logInfo
public void logInfo(java.lang.Object originator, java.lang.String msg, java.lang.Throwable t)
Helper method to simplify logging- Parameters:
originator
- The source of the log messagemsg
- The messaget
- The exception
-
logWarn
public void logWarn(java.lang.Object originator, java.lang.String msg, java.lang.Throwable t)
Helper method to simplify logging- Parameters:
originator
- The source of the log messagemsg
- The messaget
- The exception
-
logError
public void logError(java.lang.Object originator, java.lang.String msg, java.lang.Throwable t)
Helper method to simplify logging- Parameters:
originator
- The source of the log messagemsg
- The messaget
- The exception
-
-