/** * Load the registry from the XML input found in the specified input * stream. * * @param stream InputStream containing the registry configuration * information * * @exception Exception if any parsing or processing error occurs * @deprecated use normal class method instead * @since 1.0 */ public static void loadRegistry(InputStream stream) throws Exception { Registry registry = getRegistry(); registry.loadMetadata(stream); }
/** * Load the registry from the XML input found in the specified input * stream. * * @param stream InputStream containing the registry configuration * information * * @exception Exception if any parsing or processing error occurs * @deprecated use normal class method instead * @since 1.0 */ public static void loadRegistry(InputStream stream) throws Exception { Registry registry = getRegistry(); registry.loadMetadata(stream); }
/** * Load the registry from the XML input found in the specified input * stream. * * @param stream InputStream containing the registry configuration * information * * @exception Exception if any parsing or processing error occurs * @deprecated use normal class method instead * @since 1.0 */ public static void loadRegistry(InputStream stream) throws Exception { Registry registry = getRegistry(); registry.loadMetadata(stream); }
protected static boolean initMetaData(Class<?> clazz) { try { if (clazz==null) return false; getRegistry().loadMetadata(clazz.getResourceAsStream("mbeans-descriptors.xml")); }catch (Exception x) { log.warn("Unable to load meta data for class:"+clazz.getName()); return false; } return true; }