public class JBossVFsType extends Object implements org.reflections.vfs.Vfs.UrlType
Vfs.UrlType for deployment archives served through the JBoss virtual filesytem. SystemDir and
ZipDir respectively| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Modifier and Type | Method and Description |
|---|---|
org.reflections.vfs.Vfs.Dir |
createDir(URL url) |
static JBossVFsType |
getInstance() |
static File |
identifyDeployment(URL url) |
boolean |
matches(URL url) |
static void |
register()
registration example without direct dependency:
|
public static JBossVFsType getInstance()
public static void register()
static {
try {
Class jbossClass = Class.forName("eu.limetri.platform.jboss.JBossVFsType");
log.debug("eu.limetri.platform:jboss-support found");
//
// add VFS type for jboss/wildfly deployment
//
Method registerMethod = jbossClass.getMethod("register", new Class[]{});
registerMethod.invoke(null,new Class[]{});
} catch (ClassNotFoundException e) {
// only adding handler when jboss-vfs class is found
} catch (NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException | InvocationTargetException ex) {
log.error("unable to register JBossVFsType:{}",ex);
}
}
public boolean matches(URL url)
matches in interface org.reflections.vfs.Vfs.UrlTypepublic org.reflections.vfs.Vfs.Dir createDir(URL url)
createDir in interface org.reflections.vfs.Vfs.UrlTypeCopyright © 2014 LimeTri. All Rights Reserved.