/** * Store the specified Manager properties. * * @param writer PrintWriter to which we are storing * @param indent Number of spaces to indent this element * @param manager Object whose properties are being stored * * @exception Exception if an exception occurs while storing */ private void storeManager(PrintWriter writer, int indent, Manager manager) throws Exception { if (isDefaultManager(manager)) { return; } // Store the beginning of this element for (int i = 0; i < indent; i++) { writer.print(' '); } writer.print("<Manager"); storeAttributes(writer, manager); writer.println(">"); // Store nested <Store> element if (manager instanceof PersistentManager) { Store store = ((PersistentManager) manager).getStore(); if (store != null) { storeStore(writer, indent + 2, store); } } // Store the ending of this element for (int i = 0; i < indent; i++) { writer.print(' '); } writer.println("</Manager>"); }
/** * Store the specified Store properties. * * @param writer PrintWriter to which we are storing * @param indent Number of spaces to indent this element * @param store Object whose properties are being stored * * @exception Exception if an exception occurs while storing */ private void storeStore(PrintWriter writer, int indent, Store store) throws Exception { for (int i = 0; i < indent; i++) { writer.print(' '); } writer.print("<Store"); storeAttributes(writer, store); writer.println("/>"); }
/** * Returns the store used when flushing the session * * @return the store used when flushing the session */ public Store getStore() { return this.lockTemplate.withReadLock(new LockTemplate.LockedOperation<Store>() { @Override public Store invoke() { return SessionFlushValve.this.store; } }); }
/** * Sets the store to use when flushing the session * * @param store the store to use when flushing the session */ public void setStore(final Store store) { this.lockTemplate.withWriteLock(new LockTemplate.LockedOperation<Void>() { @Override public Void invoke() { SessionFlushValve.this.store = store; return null; } }); }
public Store getStore() { return this.store; }
/** * Set the Store object which will manage persistent Session * storage for this Manager. * * @param store the associated Store */ public void setStore(Store store) { this.store = store; store.setManager(this); }
/** * @return the Store object which manages persistent Session * storage for this Manager. */ public Store getStore() { return this.store; }
/** * Return the Store object which manages persistent Session * storage for this Manager. */ public Store getStore() { return (this.store); }
/** * Set the Store object which will manage persistent Session storage for * this Manager. * * @param store * the associated Store */ public void setStore(Store store) { this.store = store; store.setManager(this); }
/** * @return the Store object which manages persistent Session storage for * this Manager. */ public Store getStore() { return this.store; }
/** * The store will be injected by Tomcat on startup. * * <p>See distributed-sessions.xml for the configuration.</p> */ public void setStore(Store store) { this.store = store; store.setManager(this); }