/** Update multiple parent to child relationship. * @param parent The parent of the child. * @param oldChildren The previous array of children. A remove event is generated for any child in this array but not in the <code>children</code> array. * This array is modified and children that remain in the new children array are nulled out of the old children array. * @param children The current array of children. An add event is generated for any child in this array but not in the <code>oldChildren</code> array. * @param relationship The name of the relationship */ public void update(Object parent, Object[] oldChildren, final Object[] children, String relationship) { update(parent,oldChildren,children,relationship,false); }
/** Update multiple parent to child relationship. * @param parent The parent of the child. * @param oldChildren The previous array of children. A remove event is generated for any child in this array but not in the <code>children</code> array. * This array is modified and children that remain in the new children array are nulled out of the old children array. * @param children The current array of children. An add event is generated for any child in this array but not in the <code>oldChildren</code> array. * @param relationship The name of the relationship */ public void update(Object parent, Object[] oldChildren, final Object[] children, String relationship) { update(parent,oldChildren,children,relationship,false); }
/** Update multiple parent to child relationship. * @param parent The parent of the child. * @param oldChildren The previous array of children. A remove event is generated for any child in this array but not in the <code>children</code> array. * This array is modified and children that remain in the new children array are nulled out of the old children array. * @param children The current array of children. An add event is generated for any child in this array but not in the <code>oldChildren</code> array. * @param relationship The name of the relationship */ public void update(Object parent, Object[] oldChildren, final Object[] children, String relationship) { update(parent,oldChildren,children,relationship,false); }
public void setManagedAttribute(String name, Object value) { Object old = _managedAttributes.put(name,value); getServer().getContainer().update(this,old,value,name,true); }
public void setManagedAttribute(String name, Object value) { Object old = _managedAttributes.put(name,value); getServer().getContainer().update(this,old,value,name,true); }
@Override public void setServer(Server server) { super.setServer(server); server.getContainer().update(this, null, _selectorManager, "selectManager"); if (_privateThreadPool) server.getContainer().update(this, null, _privateThreadPool, "threadpool", true); else _threadPool = server.getThreadPool(); }
@Override public void setServer(Server server) { Server old_server = getServer(); if (old_server != null && old_server != server) old_server.getContainer().update(this,_sessionManager,null,"sessionManager",true); super.setServer(server); if (server != null && server != old_server) server.getContainer().update(this,null,_sessionManager,"sessionManager",true); }
/** * @param threadPool The threadPool to set. */ public void setThreadPool(ThreadPool threadPool) { if (_threadPool!=null) removeBean(_threadPool); _container.update(this, _threadPool, threadPool, "threadpool",false); _threadPool = threadPool; if (_threadPool!=null) addBean(_threadPool); }
@Override public void setServer(Server server) { Server old_server = getServer(); if (old_server != null && old_server != server) old_server.getContainer().update(this,_sessionManager,null,"sessionManager",true); super.setServer(server); if (server != null && server != old_server) server.getContainer().update(this,null,_sessionManager,"sessionManager",true); }
@Override public void setServer(Server server) { super.setServer(server); server.getContainer().update(this, null, _selectorManager, "selectManager"); if (_privateThreadPool) server.getContainer().update(this, null, _privateThreadPool, "threadpool", true); else _threadPool = server.getThreadPool(); }
/** * @param threadPool the thread pool */ public void setThreadPool(ThreadPool threadPool) { if (getServer() != null) getServer().getContainer().update(this, _privateThreadPool ? _threadPool : null, threadPool, "threadpool", true); _privateThreadPool = threadPool != null; _threadPool = threadPool; }
/** * @param filterMappings The filterMappings to set. */ public void setFilterMappings(FilterMapping[] filterMappings) { if (getServer()!=null) getServer().getContainer().update(this,_filterMappings,filterMappings,"filterMapping",true); _filterMappings = filterMappings; updateMappings(); invalidateChainsCache(); }
public synchronized void setFilters(FilterHolder[] holders) { if (getServer()!=null) getServer().getContainer().update(this,_filters,holders,"filter",true); _filters=holders; updateNameMappings(); invalidateChainsCache(); }
/** * @param servletMappings The servletMappings to set. */ public void setServletMappings(ServletMapping[] servletMappings) { if (getServer()!=null) getServer().getContainer().update(this,_servletMappings,servletMappings,"servletMapping",true); _servletMappings = servletMappings; updateMappings(); invalidateChainsCache(); }
/** Set Servlets. * @param holders Array of servletsto define */ public synchronized void setServlets(ServletHolder[] holders) { if (getServer()!=null) getServer().getContainer().update(this,_servlets,holders,"servlet",true); _servlets=holders; updateNameMappings(); invalidateChainsCache(); }
/** * @param errorHandler * The errorHandler to set. */ public void setErrorHandler(ErrorHandler errorHandler) { if (errorHandler != null) errorHandler.setServer(getServer()); if (getServer() != null) getServer().getContainer().update(this,_errorHandler,errorHandler,"errorHandler",true); _errorHandler = errorHandler; }
/** * @param filterMappings The filterMappings to set. */ public void setFilterMappings(FilterMapping[] filterMappings) { if (getServer()!=null) getServer().getContainer().update(this,_filterMappings,filterMappings,"filterMapping",true); _filterMappings = filterMappings; updateMappings(); invalidateChainsCache(); }
/** * @param servletMappings The servletMappings to set. */ public void setServletMappings(ServletMapping[] servletMappings) { if (getServer()!=null) getServer().getContainer().update(this,_servletMappings,servletMappings,"servletMapping",true); _servletMappings = servletMappings; updateMappings(); invalidateChainsCache(); }
/** * @param errorHandler * The errorHandler to set. */ public void setErrorHandler(ErrorHandler errorHandler) { if (errorHandler != null) errorHandler.setServer(getServer()); if (getServer() != null) getServer().getContainer().update(this,_errorHandler,errorHandler,"errorHandler",true); _errorHandler = errorHandler; }
/** * @param servletMappings The servletMappings to set. */ public void setServletMappings(ServletMapping[] servletMappings) { if (getServer()!=null) getServer().getContainer().update(this,_servletMappings,servletMappings,"servletMapping",true); _servletMappings = servletMappings; updateMappings(); invalidateChainsCache(); }