/** * Register a {@link Convertor} for a class or interface. * * @param forClass * The class or interface that the convertor applies to * @param convertor * the convertor */ public static void registerConvertor(Class forClass, Convertor convertor) { DEFAULT.addConvertor(forClass,convertor); }
/** * Register a {@link Convertor} for a class or interface. * * @param forClass * The class or interface that the convertor applies to * @param convertor * the convertor */ public static void registerConvertor(Class forClass, Convertor convertor) { DEFAULT.addConvertor(forClass,convertor); }
/** * Register a {@link Convertor} for a class or interface. * * @param forClass * The class or interface that the convertor applies to * @param convertor * the convertor */ public static void registerConvertor(Class forClass, Convertor convertor) { DEFAULT.addConvertor(forClass,convertor); }
/** * Register a {@link Convertor} for a class or interface. * * @param forClass * The class or interface that the convertor applies to * @param convertor * the convertor */ public static void registerConvertor(Class forClass, Convertor convertor) { DEFAULT.addConvertor(forClass,convertor); }
/** * Register a {@link Convertor} for a class or interface. * * @param forClass * The class or interface that the convertor applies to * @param convertor * the convertor */ public static void registerConvertor(Class forClass, Convertor convertor) { DEFAULT.addConvertor(forClass,convertor); }
/** * Creates a JSON serializer that can serialize a PermissionStatus object into * the JSON string we want in the blob metadata. * * @return The JSON serializer. */ private static JSON createPermissionJsonSerializer() { JSON serializer = new JSON(); serializer.addConvertor(PermissionStatus.class, new PermissionStatusJsonSerializer()); return serializer; }