All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wildfly.swarm.jolokia.access.FileJolokiaAccessPreparer Maven / Gradle / Ivy

Go to download

Deploys the jolokia.war to activate JMX-HTTP bridge as an alternative to JSR-160 connectors

There is a newer version: 2018.5.0
Show newest version
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