/** * {@inheritDoc} */ @Override protected boolean exclude( final String name, Object value ) { try { if (legacySessionExcludeMethod != null) { return (Boolean) legacySessionExcludeMethod.invoke(this, name); } else { return super.exclude(name, value); } } catch (InvocationTargetException e) { if (e.getCause() instanceof RuntimeException) { throw (RuntimeException) e.getCause(); } throw new RuntimeException("Failed to invoke StandardSession#exclude(String) method.", e); } catch (IllegalAccessException e) { throw new RuntimeException("Can not access StandardSession#exclude(String) method.", e); } }
/** * Exclude attributes from replication. * @param name the attribute's name * @return true if attribute should not be replicated */ @Override protected boolean exclude(String name) { if (super.exclude(name)) return true; if (manager instanceof ClusterManagerBase) return !((ClusterManagerBase)manager).willAttributeDistribute(name); return false; }
/** * Exclude attributes from replication. * @param name the attribute's name * @return true if attribute should not be replicated */ @Override protected boolean exclude(String name) { if (super.exclude(name)) return true; if (manager instanceof ClusterManagerBase) return !((ClusterManagerBase)manager).willAttributeDistribute(name); return false; }
/** * {@inheritDoc} */ @Override protected boolean exclude( final String name, Object value ) { try { if (legacySessionExcludeMethod != null) { return (Boolean) legacySessionExcludeMethod.invoke(this, name); } else { return super.exclude(name, value); } } catch (InvocationTargetException e) { if (e.getCause() instanceof RuntimeException) { throw (RuntimeException) e.getCause(); } throw new RuntimeException("Failed to invoke StandardSession#exclude(String) method.", e); } catch (IllegalAccessException e) { throw new RuntimeException("Can not access StandardSession#exclude(String) method.", e); } }
continue; else if ( (value instanceof Serializable) && (!exclude(keys[i]) )) { saveNames.add(keys[i]); saveValues.add(value);
continue; else if ( (value instanceof Serializable) && (!exclude(keys[i]) )) { saveNames.add(keys[i]); saveValues.add(value);
continue; else if ( (value instanceof Serializable) && (!exclude(keys[i]) )) { saveNames.add(keys[i]); saveValues.add(value);
if (value == null) { continue; } else if (isAttributeDistributable(keys[i], value) && !exclude(keys[i], value)) { saveNames.add(keys[i]); saveValues.add(value);
if (value == null) { continue; } else if (isAttributeDistributable(keys[i], value) && !exclude(keys[i], value)) { saveNames.add(keys[i]); saveValues.add(value);
continue; else if ( (value instanceof Serializable) && (!exclude(keys[i]) )) { saveNames.add(keys[i]); saveValues.add(value);
continue; else if ( (value instanceof Serializable) && (!exclude(keys[i]) )) { saveNames.add(keys[i]); saveValues.add(value);
continue; else if ( (value instanceof Serializable) && (!exclude(keys[i]) )) { saveNames.add(keys[i]); saveValues.add(value);
continue; else if ( (value instanceof Serializable) && (!exclude(keys[i]) )) { saveNames.add(keys[i]); saveValues.add(value);
continue; else if ( (value instanceof Serializable) && (!exclude(keys[i]) )) { saveNames.add(keys[i]); saveValues.add(value);
continue; else if ( (value instanceof Serializable) && (!exclude(keys[i]) )) { saveNames.add(keys[i]); saveValues.add(value);
if (exclude(name, value)) { continue;
if (exclude(name, value)) { continue;
!isAttributeDistributable(name, value) && !exclude(name, value)) { throw new IllegalArgumentException( sm.getString("standardSession.setAttribute.iae", name));
!isAttributeDistributable(name, value) && !exclude(name, value)) { throw new IllegalArgumentException( sm.getString("standardSession.setAttribute.iae", name));