/** * Return the set of filter mappings for this Context. * @return a string array with a representation of all the filter mappings * @throws MBeanException propagated from the managed resource access */ public String[] findFilterMaps() throws MBeanException { Context context = doGetManagedResource(); FilterMap[] maps = context.findFilterMaps(); String[] stringMaps = new String[maps.length]; for (int counter = 0; counter < maps.length; counter++) { stringMaps[counter] = maps[counter].toString(); } return stringMaps; } }
/** * Return the set of filter mappings for this Context. * @return a string array with a representation of all the filter mappings * @throws MBeanException propagated from the managed resource access */ public String[] findFilterMaps() throws MBeanException { Context context = doGetManagedResource(); FilterMap[] maps = context.findFilterMaps(); String[] stringMaps = new String[maps.length]; for (int counter = 0; counter < maps.length; counter++) { stringMaps[counter] = maps[counter].toString(); } return stringMaps; } }
/** * Return the set of filter mappings for this Context. */ public String[] findFilterMaps() 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); } FilterMap[] maps = context.findFilterMaps(); String[] stringMaps = new String[maps.length]; for(int counter=0; counter < maps.length; counter++){ stringMaps[counter]=maps[counter].toString(); } return stringMaps; }