/** * Loads the specified booter implementation. * * @param classname the class name. * @return The boot class. */ protected AbstractBoot loadBooter( final String classname ) { return loadBooter( classname, getClass() ); }
/** * Loads the specified booter implementation. * * @param classname the class name. * @return The boot class. */ protected AbstractBoot loadBooter(final String classname) { return loadBooter(classname, getClass()); }
/** * Helper method for serialization. * * @param in the input stream from where to read the serialized object. * @throws java.io.IOException when reading the stream fails. * @throws ClassNotFoundException if a class definition for a serialized object could not be found. */ private void readObject( final ObjectInputStream in ) throws IOException, ClassNotFoundException { in.defaultReadObject(); final boolean readParent = in.readBoolean(); if ( readParent ) { parentConfiguration = (Configuration) in.readObject(); } else { if ( booterClass != null ) { final AbstractBoot boot = AbstractBoot.loadBooter( booterClass.getName(), booterClass ); parentConfiguration = boot.getGlobalConfig(); } else { parentConfiguration = null; } } }
/** * Helper method for serialization. * * @param in the input stream from where to read the serialized object. * @throws java.io.IOException when reading the stream fails. * @throws ClassNotFoundException if a class definition for a serialized * object could not be found. */ private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); final boolean readParent = in.readBoolean(); if (readParent) { parentConfiguration = (Configuration) in.readObject(); } else { if (booterClass != null) { final AbstractBoot boot = AbstractBoot.loadBooter(booterClass.getName(), booterClass); parentConfiguration = boot.getGlobalConfig(); } else { parentConfiguration = null; } } }
/** * The main entry point to start the detail editor. * * @param args ignored. */ @SuppressWarnings( "UseOfSystemOutOrSystemErr" ) public static void main( final String[] args ) { ConfigEditorBoot.getInstance().start(); if ( args.length == 0 ) { final ConfigDescriptionEditor ed = new ConfigDescriptionEditor(); ed.pack(); ed.setVisible( true ); } else { final AbstractBoot boot = AbstractBoot.loadBooter( args[ 0 ], ConfigDescriptionEditor.class ); if ( boot == null ) { System.out.println( "Error: Unable to load the specified booter class: " + args[ 0 ] ); System.exit( -1 ); } final ConfigDescriptionEditor ed = new ConfigDescriptionEditor( boot ); ed.pack(); ed.setVisible( true ); } } }
final AbstractBoot boot = loadBooter( projectInformation.getBootClass() ); if ( boot != null ) {
final AbstractBoot boot = loadBooter(projectInformation.getBootClass()); if (boot != null)