/** * This method must be called in order to register the value factories for the ObjectReferenceTemplate and * ObjectReferenceFactory value types. */ public static void registerValueFactories(ORB orb) { // Create and register the factory for the Object Reference Template implementation. ValueFactory vf = new ValueFactory() { public Serializable read_value(InputStream is) { return new ObjectReferenceTemplateImpl(is); } }; orb.register_value_factory(ObjectReferenceTemplateImpl.repositoryId, vf); // Create and register the factory for the Object Reference Factory implementation. vf = new ValueFactory() { public Serializable read_value(InputStream is) { return new ObjectReferenceFactoryImpl(is); } }; orb.register_value_factory(ObjectReferenceFactoryImpl.repositoryId, vf); } }
/** * This method must be called in order to register the value factories for the ObjectReferenceTemplate and * ObjectReferenceFactory value types. */ public static void registerValueFactories(ORB orb) { // Create and register the factory for the Object Reference Template implementation. ValueFactory vf = new ValueFactory() { public Serializable read_value(InputStream is) { return new ObjectReferenceTemplateImpl(is); } }; orb.register_value_factory(ObjectReferenceTemplateImpl.repositoryId, vf); // Create and register the factory for the Object Reference Factory implementation. vf = new ValueFactory() { public Serializable read_value(InputStream is) { return new ObjectReferenceFactoryImpl(is); } }; orb.register_value_factory(ObjectReferenceFactoryImpl.repositoryId, vf); } }