Mercurial > hg > Members > tatsuki > Alice
changeset 355:5215b3d9fb0f dispose
add DisposeManager.java
author | sugi |
---|---|
date | Mon, 12 May 2014 18:28:09 +0900 |
parents | fa6033c56f7d |
children | |
files | src/main/java/alice/daemon/dispose/DisposeManager.java |
diffstat | 1 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/alice/daemon/dispose/DisposeManager.java Mon May 12 18:28:09 2014 +0900 @@ -0,0 +1,22 @@ +package alice.daemon.dispose; + +import alice.codesegment.CodeSegment; + +public class DisposeManager extends CodeSegment{ + private static DisposeManager instance = new DisposeManager(); + + private DisposeManager(){} + public static DisposeManager getInstance(){ + return instance; + } + + @Override + public void run() { + + + } + + public synchronized void setCodeSegment(String managerKey, CodeSegment cs){ + ods.put("_DISPOSE"+managerKey, cs); + } +}