/** * Create and start the plugin context. * * @param discovery the plugin discovery * @return the plugin context */ protected PluginContext start(Map<String, Object> attributes, PluginDiscovery discovery, ClassLoader loader) { PluginContext context = create(attributes, discovery, loader); if (context != null) { context.refresh(); start(context); } return context; }
/** * Create the plugin context, allow subclasses to customize it. * * @param discovery the plugin discovery * @return the plugin context */ protected PluginContext create(Map<String, Object> attributes, PluginDiscovery discovery, ClassLoader loader) { // FS cmdFS; FS confFS; try { cmdFS = createCommandFS(); confFS = createConfFS(); } catch (IOException e) { log.log(Level.SEVERE, "Coult not initialize the file system", e); return null; } // return new PluginContext(discovery, attributes, cmdFS, confFS, loader); }
/** * Create the conf file system from the <code>crash.mountpointconfig.conf</code> servlet context parameter. * * @return the conf file system */ protected FS createConfFS() throws IOException { return createFS(resolveConfMountPointConfig()); }
/** * Create the command file system from the <code>crash.mountpointconfig.cmd</code> servlet context parameter. * * @return the command file system */ protected FS createCommandFS() throws IOException { return createFS(resolveCmdMountPointConfig()); }
/** * Create a new file system, configured by a the argument <code>mountPointConfig</code>: when the mount point * configuration is not null, it is mounted on the returned file system. * * @param mountPointConfig the mount point configuration * @return the configured file system * @throws IOException any io exception */ protected FS createFS(String mountPointConfig) throws IOException { FS.Builder builder = new FS.Builder(); for (Map.Entry<String, FSMountFactory<?>> driver : getMountFactories().entrySet()) { builder.register(driver.getKey(), driver.getValue()); } if (mountPointConfig != null) { builder.mount(mountPointConfig); } return builder.build(); }
/** * Create the command file system from the <code>crash.mountpointconfig.cmd</code> servlet context parameter. * * @return the command file system */ protected FS createCommandFS() throws IOException { return createFS(resolveCmdMountPointConfig()); }
/** * Create a new file system, configured by a the argument <code>mountPointConfig</code>: when the mount point * configuration is not null, it is mounted on the returned file system. * * @param mountPointConfig the mount point configuration * @return the configured file system * @throws IOException any io exception */ protected FS createFS(String mountPointConfig) throws IOException { FS.Builder builder = new FS.Builder(); for (Map.Entry<String, FSMountFactory<?>> driver : getMountFactories().entrySet()) { builder.register(driver.getKey(), driver.getValue()); } if (mountPointConfig != null) { builder.mount(mountPointConfig); } return builder.build(); }
/** * Create the conf file system from the <code>crash.mountpointconfig.conf</code> servlet context parameter. * * @return the conf file system */ protected FS createConfFS() throws IOException { return createFS(resolveConfMountPointConfig()); }
/** * Create the command file system from the <code>crash.mountpointconfig.cmd</code> servlet context parameter. * * @return the command file system */ protected FS createCommandFS() throws IOException { return createFS(resolveCmdMountPointConfig()); }
/** * Create and start the plugin context. * * @param discovery the plugin discovery * @return the plugin context */ protected PluginContext start(Map<String, Object> attributes, PluginDiscovery discovery, ClassLoader loader) { PluginContext context = create(attributes, discovery, loader); if (context != null) { context.refresh(); start(context); } return context; }
/** * Create the plugin context, allow subclasses to customize it. * * @param discovery the plugin discovery * @return the plugin context */ protected PluginContext create(Map<String, Object> attributes, PluginDiscovery discovery, ClassLoader loader) { // FS cmdFS; FS confFS; try { cmdFS = createCommandFS(); confFS = createConfFS(); } catch (IOException e) { log.log(Level.SEVERE, "Coult not initialize the file system", e); return null; } // return new PluginContext(discovery, attributes, cmdFS, confFS, loader); }
/** * Create a new file system, configured by a the argument <code>mountPointConfig</code>: when the mount point * configuration is not null, it is mounted on the returned file system. * * @param mountPointConfig the mount point configuration * @return the configured file system * @throws IOException any io exception */ protected FS createFS(String mountPointConfig) throws IOException { FS.Builder builder = new FS.Builder(); for (Map.Entry<String, FSMountFactory<?>> driver : getMountFactories().entrySet()) { builder.register(driver.getKey(), driver.getValue()); } if (mountPointConfig != null) { builder.mount(mountPointConfig); } return builder.build(); }
/** * Create the conf file system from the <code>crash.mountpointconfig.conf</code> servlet context parameter. * * @return the conf file system */ protected FS createConfFS() throws IOException { return createFS(resolveConfMountPointConfig()); }
/** * Create and start the plugin context. * * @param discovery the plugin discovery * @return the plugin context */ protected PluginContext start(Map<String, Object> attributes, PluginDiscovery discovery, ClassLoader loader) { PluginContext context = create(attributes, discovery, loader); if (context != null) { context.refresh(); start(context); } return context; }
/** * Create the plugin context, allow subclasses to customize it. * * @param discovery the plugin discovery * @return the plugin context */ protected PluginContext create(Map<String, Object> attributes, PluginDiscovery discovery, ClassLoader loader) { // FS cmdFS; FS confFS; try { cmdFS = createCommandFS(); confFS = createConfFS(); } catch (IOException e) { log.log(Level.SEVERE, "Coult not initialize the file system", e); return null; } // return new PluginContext(discovery, attributes, cmdFS, confFS, loader); }