/** Fires a change event for {@link #PROP_COOKIE}. * The old and new values are set to null. */ protected final void fireCookieChange() { Lookup l = findDelegatingLookup(); if (l instanceof NodeLookup) { ((NodeLookup) l).updateLookupAsCookiesAreChanged(null); } fireOwnPropertyChange(PROP_COOKIE, null, null); }
/** Notifies subclasses that a query is about to be processed. * @param template the template */ @Override protected final void beforeLookup(Template template) { Class type = template.getType(); if (type == Object.class) { // ok, this is likely query for everything java.util.Set all; Object prev = null; try { prev = CookieSet.entryAllClassesMode(); Object ignoreResult = node.getCookie(Node.Cookie.class); } finally { all = CookieSet.exitAllClassesMode(prev); } Iterator it = all.iterator(); while (it.hasNext()) { Class c = (Class) it.next(); updateLookupAsCookiesAreChanged(c); } // update Node.Cookie if not yet if (!queriedCookieClasses.contains(Node.Cookie.class)) { updateLookupAsCookiesAreChanged(Node.Cookie.class); } } if (!queriedCookieClasses.contains(type)) { updateLookupAsCookiesAreChanged(type); } }
/** Notifies subclasses that a query is about to be processed. * @param template the template */ protected final void beforeLookup (Template template) { Class type = template.getType (); if (type == Object.class) { type = Node.Cookie.class; } if (Node.Cookie.class.isAssignableFrom (type)) { if (!queriedCookieClasses.contains (type)) { updateLookupAsCookiesAreChanged (type); } } } /** See #40734 and NodeLookupTest and CookieActionIsTooSlowTest.
/** Notifies subclasses that a query is about to be processed. * @param template the template */ protected final void beforeLookup (Template template) { Class type = template.getType (); if (type == Object.class) { type = Node.Cookie.class; } if (Node.Cookie.class.isAssignableFrom (type)) { if (!queriedCookieClasses.contains (type)) { updateLookupAsCookiesAreChanged (type); } } } /** See #40734 and NodeLookupTest and CookieActionIsTooSlowTest.
/** Fires a change event for {@link #PROP_COOKIE}. * The old and new values are set to null. */ protected final void fireCookieChange () { Lookup l = findDelegatingLookup (); if (l instanceof NodeLookup) { ((NodeLookup)l).updateLookupAsCookiesAreChanged (null); } fireOwnPropertyChange (PROP_COOKIE, null, null); }
/** Fires a change event for {@link #PROP_COOKIE}. * The old and new values are set to null. */ protected final void fireCookieChange () { Lookup l = findDelegatingLookup (); if (l instanceof NodeLookup) { ((NodeLookup)l).updateLookupAsCookiesAreChanged (null); } fireOwnPropertyChange (PROP_COOKIE, null, null); }