org.wildfly.swarm.jolokia.access.FileJolokiaAccessPreparer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jolokia Show documentation
Show all versions of jolokia Show documentation
Deploys the jolokia.war to activate JMX-HTTP bridge as an alternative to JSR-160 connectors
package org.wildfly.swarm.jolokia.access;
import java.io.File;
import org.jboss.shrinkwrap.api.asset.Asset;
import org.jboss.shrinkwrap.api.asset.FileAsset;
/**
* @author Bob McWhirter
*/
public class FileJolokiaAccessPreparer extends AbstractJolokiaAccessPreparer {
public FileJolokiaAccessPreparer(File file) {
this.file = file;
}
@Override
protected Asset getJolokiaAccessXmlAsset() {
if (this.file.exists()) {
return new FileAsset(this.file);
}
return null;
}
private final File file;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy