|
From: Michael R. <mr...@us...> - 2004-08-10 13:29:17
|
Update of /cvsroot/openorb/OpenORB/src/examples/org/openorb/orb/examples/dsi/boa In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7788/src/examples/org/openorb/orb/examples/dsi/boa Modified Files: Client.java Added Files: Server.java Removed Files: DynServer.java Log Message: Fixed the remaining checkstyle warnings --- NEW FILE: Server.java --- /* * Copyright (C) The Community OpenORB Project. All rights reserved. * * This software is published under the terms of The OpenORB Community Software * License version 1.0, a copy of which has been included with this distribution * in the LICENSE.txt file. */ package org.openorb.orb.examples.dsi.boa; public final class Server { // do not instantiate private Server() { } public static void main( String[] args ) { java.util.Properties props = new java.util.Properties(); props.setProperty( "ImportModule.BOA", "${openorb.home}config/default.xml#BOA" ); org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init( args, props ); org.omg.CORBA.BOA boa = org.omg.CORBA.BOA.init( orb, args ); DynSkeleton skeleton = new DynSkeleton( orb ); boa.connect( skeleton ); boa.obj_is_ready( skeleton ); try { String ref = orb.object_to_string( skeleton ); java.io.FileOutputStream file = new java.io.FileOutputStream( "ObjectId" ); java.io.PrintStream pfile = new java.io.PrintStream( file ); pfile.println( ref ); pfile.close(); } catch ( java.io.IOException ex ) { ex.printStackTrace(); System.exit( 0 ); } try { System.out.println( " The server is ready..." ); boa.impl_is_ready(); } catch ( org.omg.CORBA.SystemException ex ) { ex.printStackTrace(); } } } Index: Client.java =================================================================== RCS file: /cvsroot/openorb/OpenORB/src/examples/org/openorb/orb/examples/dsi/boa/Client.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Client.java 19 Feb 2004 07:21:29 -0000 1.3 +++ Client.java 10 Aug 2004 13:28:38 -0000 1.4 @@ -8,8 +8,9 @@ package org.openorb.orb.examples.dsi.boa; -public class Client +public final class Client { + // do not instantiate private Client() { } --- DynServer.java DELETED --- |