/** * Dispatches a <code>queryInterface</code> call. * * @return the result of the call (should be an <code>Any</code>). */ protected Object dispatch_queryInterface(Type type) { Class<?> zInterface = type.getTypeDescription().getZClass(); Object result = null; Object face = UnoRuntime.queryInterface(zInterface, _object); // the hell knows why, but empty interfaces a given back as void anys if(face != null) result = new Any(type, face); return result; }
/** * Dispatches a <code>queryInterface</code> call * <p> * @return the result of the call (should be an <code>Any</code>) * @param message the parameter for the call * @param resultClass the result type as an out parameter * @param status the status as an out parameter * @param o_outs the out parameters of the call as out parameters * @param o_out_sig the out signature as an out parameter */ protected Object dispatch_queryInterface(Type type) { Class zInterface = type.getTypeDescription().getZClass(); Object result = null; Object face = UnoRuntime.queryInterface(zInterface, _object); // the hell knows why, but empty interfaces a given back as void anys if(face != null) result = new Any(type, face); return result; }
public static TypeDescription getTypeDescription(Type type) throws ClassNotFoundException { //TODO: synchronize on type? TypeDescription desc = (TypeDescription) type.getTypeDescription(); if (desc == null) { desc = getTypeDescription(type.getTypeName()); type.setTypeDescription(desc); } return desc; }
public static TypeDescription getTypeDescription(Type type) throws ClassNotFoundException { //TODO: synchronize on type? TypeDescription desc = type.getTypeDescription(); if (desc == null) { desc = getTypeDescription(type.getTypeName()); type.setTypeDescription(desc); } return desc; }