001 package railo.runtime.type.scope.client; 002 003 import railo.commons.io.log.Log; 004 import railo.runtime.PageContext; 005 import railo.runtime.type.Collection; 006 import railo.runtime.type.scope.ClientPlus; 007 import railo.runtime.type.scope.storage.MemoryScope; 008 import railo.runtime.type.scope.storage.StorageScopeMemory; 009 010 public class ClientMemory extends StorageScopeMemory implements ClientPlus,MemoryScope { 011 012 private static final long serialVersionUID = 5032226519712666589L; 013 014 015 /** 016 * Constructor of the class 017 * @param pc 018 * @param log 019 * @param name 020 */ 021 private ClientMemory(PageContext pc, Log log) { 022 super(pc,"client",SCOPE_CLIENT,log); 023 } 024 025 /** 026 * Constructor of the class, clone existing 027 * @param other 028 */ 029 private ClientMemory(ClientMemory other,boolean deepCopy) { 030 super(other,deepCopy); 031 } 032 /** 033 * load a new instance of the class 034 * @param pc 035 * @param log 036 * @return 037 */ 038 public static ClientPlus getInstance(PageContext pc, Log log) { 039 return new ClientMemory(pc,log); 040 } 041 042 043 /** 044 * 045 * @see railo.runtime.type.Collection#duplicate(boolean) 046 */ 047 public Collection duplicate(boolean deepCopy) { 048 return new ClientMemory(this,deepCopy); 049 } 050 }