Basic HTML version of Foils prepared Aug 14 1997

Foil 50 Example:Implementation Template

From JavaBeans CORBA ComponentWare UC Web applications Certificate -- Aug 11,14 97. by Geoffrey C. Fox, Wojtek Furmanski


1 package Counter;
2 public class example_Count extends Skeleton implements Count {
3 private int sum;
4 example_CountImpl(String name) { // Count object constructor
5 super(name); sum = 0;
6 System.out.println("Count Object Created!");
7 }
8 public int sum() throws CORBA.Exception { // accessor method: getSum
9 }
10 public void sum(int val) throws CORBA.Exception { // accessor method: setSum
11 }
12 public int increment() throws CORBA.Exception { // increment method
13 }
14 }
15 Note: This code is generated by IDL-&#062Java pre-compiler and needs to be
16 completed by the developer (by implementing the indicated methods)
17
18
19
20 Note: This code is created automatically by
21 IDL-&#062Java pre-compiler from the IDL spec

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Jan 8 1998