mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 09:39:39 +02:00
The initializer tests verify that every non-optional initializer, this includes Providers, is loadable. Creating files under META-INF is not considered best practice. Smack's configuration and provider files reside now in classpath directory qualified by Smack's package namespace.
16 lines
No EOL
450 B
Java
16 lines
No EOL
450 B
Java
package org.jivesoftware.smackx;
|
|
|
|
import org.jivesoftware.smack.initializer.UrlProviderFileInitializer;
|
|
|
|
/**
|
|
* Loads the default provider file for the Smack extensions on initialization.
|
|
*
|
|
* @author Robin Collier
|
|
*
|
|
*/
|
|
public class ExtensionsProviderInitializer extends UrlProviderFileInitializer {
|
|
@Override
|
|
protected String getFilePath() {
|
|
return "classpath:org.jivesoftware.smackx/extensions.providers";
|
|
}
|
|
} |