01: /*
02: * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
03: * Copyright (C) 2005 - Javolution (http://javolution.org/)
04: * All rights reserved.
05: *
06: * Permission to use, copy, modify, and distribute this software is
07: * freely granted, provided that this notice is preserved.
08: */
09: 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 object) {
22: return DEFAULT;
23: }
24:
25: public void executeInArea(Runnable logic) {
26: logic.run();
27: }
28:
29: public Object newInstance(Class type)
30: throws InstantiationException, IllegalAccessException {
31: return type.newInstance();
32: }
33:
34: }
|