Searched defs:listeners (Results 1 - 25 of 29) sorted by relevance

12

/glassfish-3.1.2/admin/config-api/src/test/java/com/sun/enterprise/configapi/tests/
H A DEnabledTest.java62 List<NetworkListener> listeners = null; field in class:EnabledTest
68 listeners = service.getNetworkListeners().getNetworkListener();
73 for (NetworkListener listener : listeners) {
/glassfish-3.1.2/connectors/connectors-runtime/src/main/java/com/sun/enterprise/connectors/naming/
H A DConnectorResourceNamingEventNotifier.java54 private ArrayList<ConnectorNamingEventListener> listeners; field in class:ConnectorResourceNamingEventNotifier
58 listeners= new ArrayList<ConnectorNamingEventListener>();
77 listeners.add(listener);
85 listeners.remove(listener);
89 * Notifies all the registered listeners about the naming event.
94 for(ConnectorNamingEventListener listener : listeners){
/glassfish-3.1.2/core/kernel/src/main/java/org/glassfish/kernel/
H A DFileMonitoringImpl.java72 final Map<File, List<FileChangeListener>> listeners = new HashMap<File, List<FileChangeListener>>(); field in class:FileMonitoringImpl
83 monitoredFiles.addAll(listeners.keySet());
87 listeners.remove(file);
112 listeners.get(file).add(listener);
116 listeners.put(file, list);
123 for (final FileChangeListener listener : listeners.get(file)) {
134 for (final FileChangeListener listener : listeners.get(file)) {
/glassfish-3.1.2/core/kernel/src/main/java/org/glassfish/kernel/event/
H A DEventsImpl.java74 List<EventListener> listeners = Collections.synchronizedList(new ArrayList<EventListener>()); field in class:EventsImpl
77 listeners.add(listener);
87 l.addAll(listeners);
141 return listeners.remove(listener);
/glassfish-3.1.2/tests/embedded/maven-plugin/websockets/src/main/java/com/sun/grizzly/samples/websockets/
H A DChatApplication.java59 public WebSocket createSocket(WebSocketListener... listeners) throws IOException { argument
H A DChatWebSocket.java52 public ChatWebSocket(WebSocketListener... listeners) { argument
53 super(listeners);
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/util/
H A DLifecycleSupport.java110 private List<LifecycleListener> listeners = field in class:LifecycleSupport
123 listeners.add(listener);
128 * Gets the (possibly empty) list of lifecycle listeners associated
132 return listeners;
137 * Notify all lifecycle event listeners that a particular event has
147 Iterator<LifecycleListener> i = listeners.iterator();
160 listeners.remove(listener);
165 * Removes any lifecycle event listeners from this LifecycleSupport
169 listeners.clear();
H A DInstanceSupport.java114 private InstanceListener listeners[] = new InstanceListener[0]; field in class:InstanceSupport
146 synchronized (listeners) {
148 new InstanceListener[listeners.length + 1];
149 for (int i = 0; i < listeners.length; i++)
150 results[i] = listeners[i];
151 results[listeners.length] = listener;
152 listeners = results;
159 new InstanceListener[listeners.length + 1];
160 for (int i = 0; i < listeners.length; i++)
161 results[i] = listeners[
[all...]
/glassfish-3.1.2/flashlight/framework/src/main/java/org/glassfish/flashlight/provider/
H A DProbeProviderEventManager.java56 private Collection<ProbeProviderListener> listeners = new ArrayList<ProbeProviderListener>(); field in class:ProbeProviderEventManager
61 listeners.add(listener);
82 listeners.remove(listener);
89 for (ProbeProviderListener listener : listeners) {
99 for (ProbeProviderListener listener : listeners) {
/glassfish-3.1.2/webservices/jsr109-impl/src/main/java/org/glassfish/webservices/
H A DWebServiceDeploymentNotifierImpl.java53 private final Collection<WebServiceDeploymentListener> listeners = field in class:WebServiceDeploymentNotifierImpl
57 listeners.add(listener);
61 listeners.remove(listener);
65 for(WebServiceDeploymentListener listener : listeners) {
71 for(WebServiceDeploymentListener listener : listeners) {
/glassfish-3.1.2/deployment/client/src/main/java/org/glassfish/deployapi/
H A DSimpleProgressObjectImpl.java66 /** Records registered listeners */
67 private Vector listeners = new Vector(); field in class:SimpleProgressObjectImpl
70 *Records all events delivered so late-registering listeners will be informed of all past events
88 synchronized (listeners) {
89 listeners.add(progressListener);
127 synchronized (listeners) {
128 listeners.remove(progressListener);
137 * Notifies all listeners that have registered interest for ProgressEvent notification.
141 synchronized (listeners) {
142 currentListeners = (Vector) listeners
[all...]
H A DProgressObjectImpl.java79 private Vector listeners = new Vector(); // <-- needs to be synchronized field in class:ProgressObjectImpl
159 synchronized (listeners) {
160 listeners.add(pol);
375 synchronized (listeners) {
376 listeners.remove(pol);
401 * Notifies all listeners that have registered interest for ProgressEvent notification.
407 *methods synchronize on the listeners vector, a listener could conceivably invoke add or remove
410 *Fix: clone the listeners vector and iterate through the clone.
413 synchronized (listeners) {
414 currentListeners = (Vector) listeners
[all...]
/glassfish-3.1.2/webservices/jsr109-impl/src/main/java/org/glassfish/webservices/monitoring/
H A DEndpointImpl.java69 List<MessageListener> listeners = new ArrayList<MessageListener>(); field in class:EndpointImpl
104 listeners.add(newListener);
112 listeners.remove(listener);
116 * Returns true if this endpoint has listeners registered
120 return !listeners.isEmpty();
/glassfish-3.1.2/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/
H A DConnectionLeakDetector.java67 private Map<ResourceHandle, ConnectionLeakListener> listeners; field in class:ConnectionLeakDetector
81 listeners = new HashMap<ResourceHandle, ConnectionLeakListener>();
98 listeners.put(handle, listener);
102 listeners.remove(handle);
155 ConnectionLeakListener connLeakListener = listeners.get(resourceHandle);
163 //Unregister here as the listeners would still be present in the map.
/glassfish-3.1.2/jdbc/jdbc-ra/jdbc-core/src/main/java/com/sun/gjc/util/
H A DStatementLeakDetector.java74 private Map<Statement, StatementLeakListener> listeners; field in class:StatementLeakDetector
87 listeners = new HashMap<Statement, StatementLeakListener>();
107 listeners.put(stmt, listener);
111 listeners.remove(stmt);
170 StatementLeakListener stmtLeakListener = listeners.get(stmt);
185 //Unregister here as the listeners would still be present in the map.
/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/server/
H A DLifecycleModuleService.java99 private ArrayList listeners = new ArrayList(); field in class:LifecycleModuleService
233 for(;i<this.listeners.size();i++) {
234 if(((ServerLifecycleModule)listeners.get(i)).getLoadOrder() > order) {
238 this.listeners.add(i,next);
245 if (listeners.isEmpty())
249 for(Iterator iter = listeners.iterator(); iter.hasNext();) {
259 if (listeners.isEmpty())
263 for(Iterator iter = listeners.iterator(); iter.hasNext();) {
273 if (listeners.isEmpty())
277 for(Iterator iter = listeners
[all...]
/glassfish-3.1.2/web/web-embed/impl/src/main/java/org/glassfish/web/embed/impl/
H A DWebContainerImpl.java96 * programmatic creation of different types of web protocol listeners
140 private List<WebListener> listeners = new ArrayList<WebListener>(); field in class:WebContainerImpl
214 listeners.add(webListener);
287 if (listeners.contains(webListener)) {
288 listeners.remove(webListener);
426 final NetworkListeners listeners = (NetworkListeners) params[0];
429 listeners.getNetworkListener().remove(listenerToBeRemoved);
812 for (WebListener listener : listeners) {
824 for (WebListener listener : listeners) {
843 return listeners;
[all...]
/glassfish-3.1.2/web/web-glue/src/main/java/com/sun/appserv/web/cache/
H A DCacheManager.java106 ArrayList<CacheManagerListener> listeners = field in class:CacheManager
359 synchronized (listeners) {
360 listeners.add(listener);
369 synchronized (listeners) {
370 listeners.remove(listener);
375 * enable the cache manager (and all the listeners)
378 for (int i = 0; i < listeners.size(); i++) {
379 CacheManagerListener listener = listeners.get(i);
385 * enable the cache manager (and all the listeners)
388 for (int i = 0; i < listeners
[all...]
/glassfish-3.1.2/flashlight/framework/src/main/java/org/glassfish/flashlight/impl/provider/
H A DFlashlightProbeProviderFactory.java92 private List<ProbeProviderEventListener> listeners = new ArrayList<ProbeProviderEventListener>(); field in class:FlashlightProbeProviderFactory
400 for (ProbeProviderEventListener listener : listeners) {
408 listeners.add(listener);
413 listeners.remove(listener);
/glassfish-3.1.2/ejb/ejb-container/src/main/java/com/sun/ejb/containers/util/cache/
H A DBaseCache.java128 protected ArrayList listeners = new ArrayList(); field in class:BaseCache
157 if ((listeners != null) && (buckets != null) && (bucketLocks != null)){
159 this.listeners.clear();
172 this.listeners = null;
248 listeners.add(listener);
793 * trim the item from the cache and notify listeners
800 for (int i = 0; i < listeners.size(); i++) {
801 CacheListener listener = (CacheListener) listeners.get(i);
/glassfish-3.1.2/web/admin/src/main/java/org/glassfish/web/admin/monitor/
H A DHttpServiceStatsProvider.java200 public HttpServiceStatsProvider(String vsName, String listeners) { argument
202 this.networkListeners = listeners == null ? new String[0] : listeners.split(",");
405 // ---------------- Connection related listeners -----------
/glassfish-3.1.2/web/web-ajp/src/main/java/org/apache/tomcat/util/threads/
H A DThreadPool.java142 protected Vector<ThreadPoolListener> listeners = field in class:ThreadPool
275 for( int i=0; i<listeners.size(); i++ ) {
276 ThreadPoolListener tpl=(ThreadPoolListener)listeners.elementAt(i);
283 for( int i=0; i<listeners.size(); i++ ) {
284 ThreadPoolListener tpl=(ThreadPoolListener)listeners.elementAt(i);
290 listeners.addElement( tpl );
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/appserv/util/cache/
H A DBaseCache.java117 protected ArrayList listeners = new ArrayList(); field in class:BaseCache
195 listeners.add(listener);
735 * trim the item from the cache and notify listeners
742 for (int i = 0; i < listeners.size(); i++) {
743 CacheListener listener = (CacheListener) listeners.get(i);
968 if ((listeners != null) && (buckets != null) && (bucketLocks != null)) {
970 listeners.clear();
983 listeners = null;
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/core/
H A DContainerBase.java103 * following <code>ContainerEvent</code> events to listeners who register
213 * The container event listeners for this Container.
215 protected ArrayList<ContainerListener> listeners = field in class:ContainerBase
454 // Report this property change to interested listeners
527 // Report this property change to interested listeners
599 // Report this property change to interested listeners
813 // Report this property change to interested listeners
865 // Report this property change to interested listeners
942 synchronized (listeners) {
943 listeners
[all...]
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/session/
H A DStandardSession.java266 * The session event listeners for this Session.
268 protected transient ArrayList<SessionListener> listeners = field in class:StandardSession
300 * and event listeners. <b>IMPLEMENTATION NOTE:</b> This object is
460 * Inform the listeners about the new session.
465 // Notify interested session event listeners
470 // Notify interested application event listeners
744 synchronized (listeners) {
745 listeners.add(listener);
765 * @param notify Should we notify listeners about the demise of
776 * @param notify Should we notify listeners abou
[all...]

Completed in 75 milliseconds

12