KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > j2mex > realtime > MemoryArea


1 /*
2  * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
3  * Copyright (C) 2005 - Javolution (http://javolution.org/)
4  * All rights reserved.
5  *
6  * Permission to use, copy, modify, and distribute this software is
7  * freely granted, provided that this notice is preserved.
8  */

9 package j2mex.realtime;
10
11 /**
12  * Stub for non-rtsj vms.
13  */

14 public class MemoryArea {
15
16     static final MemoryArea DEFAULT = new MemoryArea();
17
18     private MemoryArea() {
19     }
20
21     public static MemoryArea getMemoryArea(Object JavaDoc object) {
22         return DEFAULT;
23     }
24     
25     
26     public void executeInArea(Runnable JavaDoc logic) {
27         logic.run();
28     }
29
30     public Object JavaDoc newInstance(Class JavaDoc type) throws InstantiationException JavaDoc,
31            IllegalAccessException JavaDoc {
32         return type.newInstance();
33     }
34
35 }
Popular Tags