/** Create a LoaderRepository instance of type repositoryClassName and * register it under repositoryName if there is not already an instance * registered. * * @param server the MBeanServer to register with * @param repositoryClassName the class which implements LoaderRepository * @param repositoryName the JMX name to register under * @throws JMException thrown on any failure to create or register the repository */ public static synchronized void createLoaderRepository(MBeanServer server, String repositoryClassName, ObjectName repositoryName) throws JMException { LoaderRepositoryConfig config = new LoaderRepositoryConfig(); config.repositoryClassName = repositoryClassName; config.repositoryName = repositoryName; createLoaderRepository(server, config); } /** Create and configure a LoaderRepository instance using the given config
/** Create a LoaderRepository instance of type repositoryClassName and * register it under repositoryName if there is not already an instance * registered. * * @param server the MBeanServer to register with * @param repositoryClassName the class which implements LoaderRepository * @param repositoryName the JMX name to register under * @throws JMException thrown on any failure to create or register the repository */ public static synchronized void createLoaderRepository(MBeanServer server, String repositoryClassName, ObjectName repositoryName) throws JMException { LoaderRepositoryConfig config = new LoaderRepositoryConfig(); config.repositoryClassName = repositoryClassName; config.repositoryName = repositoryName; createLoaderRepository(server, config); } /** Create and configure a LoaderRepository instance using the given config