/** * Return the set of application parameters for this application. * @return a string array with a representation of each parameter * @throws MBeanException propagated from the managed resource access */ public String[] findApplicationParameters() throws MBeanException { Context context = doGetManagedResource(); ApplicationParameter[] params = context.findApplicationParameters(); String[] stringParams = new String[params.length]; for (int counter = 0; counter < params.length; counter++) { stringParams[counter] = params[counter].toString(); } return stringParams; }
/** * Return the set of application parameters for this application. * @return a string array with a representation of each parameter * @throws MBeanException propagated from the managed resource access */ public String[] findApplicationParameters() throws MBeanException { Context context = doGetManagedResource(); ApplicationParameter[] params = context.findApplicationParameters(); String[] stringParams = new String[params.length]; for (int counter = 0; counter < params.length; counter++) { stringParams[counter] = params[counter].toString(); } return stringParams; }
/** * Return the set of application parameters for this application. */ public String[] findApplicationParameters() throws MBeanException { Context context; try { context = (Context)getManagedResource(); } catch (InstanceNotFoundException e) { throw new MBeanException(e); } catch (RuntimeOperationsException e) { throw new MBeanException(e); } catch (InvalidTargetObjectTypeException e) { throw new MBeanException(e); } ApplicationParameter[] params = context.findApplicationParameters(); String[] stringParams = new String[params.length]; for(int counter=0; counter < params.length; counter++){ stringParams[counter]=params[counter].toString(); } return stringParams; }