/** * Creates the correct ValueHandler for the given ORB, querying ORBVersion information. If the ORB or ORBVersion is * null, gets the ValueHandler from Util.createValueHandler. */ public static ValueHandler createValueHandler(ORB orb) { if (orb == null) return Util.createValueHandler(); ORBVersion version = orb.getORBVersion(); if (version == null) return Util.createValueHandler(); if (version.equals(ORBVersionFactory.getOLD())) return new ValueHandlerImpl_1_3(); if (version.equals(ORBVersionFactory.getNEW())) return new ValueHandlerImpl_1_3_1(); return Util.createValueHandler(); }
/** * Creates the correct ValueHandler for the given ORB, querying ORBVersion information. If the ORB or ORBVersion is * null, gets the ValueHandler from Util.createValueHandler. */ public static ValueHandler createValueHandler(ORB orb) { if (orb == null) return Util.createValueHandler(); ORBVersion version = orb.getORBVersion(); if (version == null) return Util.createValueHandler(); if (version.equals(ORBVersionFactory.getOLD())) return new ValueHandlerImpl_1_3(); if (version.equals(ORBVersionFactory.getNEW())) return new ValueHandlerImpl_1_3_1(); return Util.createValueHandler(); }