Methods Summary |
---|
public void | addListener(ApplicationLoaderEventListener listener)
synchronized (listeners) {
listeners.add(listener);
}
|
public void | addListener(ApplicationClientLoaderEventListener listener)
synchronized (appclientListeners) {
appclientListeners.add(listener);
}
|
public static com.sun.enterprise.server.event.ApplicationLoaderEventNotifier | getInstance()
return _notifier;
|
public void | notifyListeners(ApplicationEvent event)
ArrayList myListeners = null;
_logger.log(Level.FINE, "LoaderEventNotifier: " + event);
synchronized (listeners) {
myListeners = (ArrayList) listeners.clone();
}
int sz = myListeners.size();
for (int i=0; i<sz; i++) {
ApplicationLoaderEventListener listener =
(ApplicationLoaderEventListener) myListeners.get(i);
try {
listener.handleApplicationEvent(event);
} catch (Exception ex) {
_logger.log(Level.WARNING, "Exception during "
+ "handleApplicationEvent", ex);
}
}
|
public void | notifyListeners(EjbContainerEvent event)
ArrayList myListeners = null;
_logger.log(Level.FINE, "LoaderEventNotifier: " + event);
synchronized (listeners) {
myListeners = (ArrayList) listeners.clone();
}
int sz = myListeners.size();
for (int i=0; i<sz; i++) {
ApplicationLoaderEventListener listener =
(ApplicationLoaderEventListener) myListeners.get(i);
try {
listener.handleEjbContainerEvent(event);
} catch (Exception ex) {
_logger.log(Level.WARNING, "Exception during "
+ "handleEjbContainerEvent", ex);
}
}
|
public void | notifyListeners(ApplicationClientEvent event)
ArrayList myListeners = null;
_logger.log(Level.FINE, "LoaderEventNotifier: " + event);
synchronized (appclientListeners) {
myListeners = (ArrayList) appclientListeners.clone();
}
int sz = myListeners.size();
for (int i=0; i<sz; i++) {
ApplicationClientLoaderEventListener listener =
(ApplicationClientLoaderEventListener) myListeners.get(i);
try {
listener.handleApplicationClientEvent(event);
} catch (Exception ex) {
_logger.log(Level.WARNING, "Exception during "
+ "handleApplicationClientEvent", ex);
}
}
|
public void | removeListener(ApplicationLoaderEventListener listener)
synchronized (listeners) {
listeners.remove(listener);
}
|
public void | removeListener(ApplicationClientLoaderEventListener listener)
synchronized (appclientListeners) {
appclientListeners.remove(listener);
}
|