/** * @param sourceType * @param source * @param param * @throws Exception */ private void loadDescriptors(String sourceType, Object source, String param) throws Exception { load(sourceType, source, param); }
/** * @param sourceType * @param source * @param param * @throws Exception */ private void loadDescriptors(String sourceType, Object source, String param) throws Exception { load(sourceType, source, param); }
/** * @param sourceType * @param source * @param param * @throws Exception */ private void loadDescriptors(String sourceType, Object source, String param) throws Exception { load(sourceType, source, param); }
/** * Load an extended mlet file. The source can be an URL, File or * InputStream. * * All mbeans will be instantiated, registered and the attributes will be * set. The result is a list of ObjectNames. * * @param source InputStream or URL of the file * @param cl ClassLoader to be used to load the mbeans, or null to use the * default JMX mechanism ( i.e. all registered loaders ) * @return List of ObjectName for the loaded mbeans * @throws Exception * * @since 1.1 */ public List loadMBeans( Object source, ClassLoader cl ) throws Exception { return load("MbeansSource", source, null ); }
/** * Load an extended mlet file. The source can be an URL, File or * InputStream. * * All mbeans will be instantiated, registered and the attributes will be * set. The result is a list of ObjectNames. * * @param source InputStream or URL of the file * @param cl ClassLoader to be used to load the mbeans, or null to use the * default JMX mechanism ( i.e. all registered loaders ) * @return List of ObjectName for the loaded mbeans * @throws Exception * * @since 1.1 */ public List loadMBeans( Object source, ClassLoader cl ) throws Exception { return load("MbeansSource", source, null ); }
/** * Load an extended mlet file. The source can be an URL, File or * InputStream. * * All mbeans will be instantiated, registered and the attributes will be * set. The result is a list of ObjectNames. * * @param source InputStream or URL of the file * @param cl ClassLoader to be used to load the mbeans, or null to use the * default JMX mechanism ( i.e. all registered loaders ) * @return List of ObjectName for the loaded mbeans * @throws Exception * * @since 1.1 */ @Override public List<ObjectName> loadMBeans( Object source, ClassLoader cl ) throws Exception { return load("MbeansSource", source, null ); }
/** * Load an extended mlet file. The source can be an URL, File or * InputStream. * * All mbeans will be instantiated, registered and the attributes will be * set. The result is a list of ObjectNames. * * @param source InputStream or URL of the file * @param cl ClassLoader to be used to load the mbeans, or null to use the * default JMX mechanism ( i.e. all registered loaders ) * @return List of ObjectName for the loaded mbeans * @throws Exception * * @since 1.1 */ public List loadMBeans( Object source, ClassLoader cl ) throws Exception { return load("MbeansSource", source, null ); }
/** * Load an extended mlet file. The source can be an URL, File or * InputStream. * * All mbeans will be instantiated, registered and the attributes will be * set. The result is a list of ObjectNames. * * @param source InputStream or URL of the file * @param cl ClassLoader to be used to load the mbeans, or null to use the * default JMX mechanism ( i.e. all registered loaders ) * @return List of ObjectName for the loaded mbeans * @throws Exception * * @since 1.1 */ public List<ObjectName> loadMBeans( Object source, ClassLoader cl ) throws Exception { return load("MbeansSource", source, null ); }
/** * Load an extended mlet file. The source can be an URL, File or * InputStream. * * All mbeans will be instantiated, registered and the attributes will be * set. The result is a list of ObjectNames. * * @param source InputStream or URL of the file * @param cl ClassLoader to be used to load the mbeans, or null to use the * default JMX mechanism ( i.e. all registered loaders ) * @return List of ObjectName for the loaded mbeans * @throws Exception * * @since 1.1 */ @Override public List<ObjectName> loadMBeans( Object source, ClassLoader cl ) throws Exception { return load("MbeansSource", source, null ); }
/** Experimental. Will become private, some code may still use it * * @param sourceType * @param source * @param param * @throws Exception * @deprecated */ public void loadDescriptors( String sourceType, Object source, String param) throws Exception { List mbeans=load( sourceType, source, param ); if( mbeans == null) return; Iterator itr=mbeans.iterator(); while( itr.hasNext() ) { Object mb=itr.next(); if( mb instanceof ManagedBean) { addManagedBean((ManagedBean)mb); } } }
/** Experimental. Will become private, some code may still use it * * @param sourceType * @param source * @param param * @throws Exception * @deprecated */ public void loadDescriptors( String sourceType, Object source, String param) throws Exception { List mbeans=load( sourceType, source, param ); if( mbeans == null) return; Iterator itr=mbeans.iterator(); while( itr.hasNext() ) { Object mb=itr.next(); if( mb instanceof ManagedBean) { addManagedBean((ManagedBean)mb); } } }
/** Experimental. Will become private, some code may still use it * * @param sourceType * @param source * @param param * @throws Exception * @deprecated */ public void loadDescriptors( String sourceType, Object source, String param) throws Exception { List mbeans=load( sourceType, source, param ); if( mbeans == null) return; Iterator itr=mbeans.iterator(); while( itr.hasNext() ) { Object mb=itr.next(); if( mb instanceof ManagedBean) { addManagedBean((ManagedBean)mb); } } }
/** Lookup the component descriptor in the package and * in the parent packages. * * @param packageName */ public void loadDescriptors( String packageName, ClassLoader classLoader ) { String res=packageName.replace( '.', '/'); if( log.isTraceEnabled() ) { log.trace("Finding descriptor " + res ); } if( searchedPaths.get( packageName ) != null ) { return; } String descriptors = res + "/mbeans-descriptors.xml"; URL dURL = classLoader.getResource( descriptors ); if (dURL == null) { return; } log.debug( "Found " + dURL); searchedPaths.put( packageName, dURL ); try { load("MbeansDescriptorsDigesterSource", dURL, null); } catch(Exception ex ) { log.error("Error loading " + dURL); } }
/** * Lookup the component descriptor in the package and in the parent * packages. * * @param packageName The package name * @param classLoader The class loader */ public void loadDescriptors(String packageName, ClassLoader classLoader) { String res = packageName.replace('.', '/'); if (log.isTraceEnabled()) { log.trace("Finding descriptor " + res); } if (searchedPaths.get(packageName) != null) { return; } String descriptors = res + "/mbeans-descriptors.xml"; URL dURL = classLoader.getResource(descriptors); if (dURL == null) { return; } log.debug("Found " + dURL); searchedPaths.put(packageName, dURL); try { load("MbeansDescriptorsDigesterSource", dURL, null); } catch (Exception ex) { log.error("Error loading " + dURL); } }
load("MbeansDescriptorsIntrospectionSource", beanClass, type);
load("MbeansDescriptorsIntrospectionSource", beanClass, type);