sirius.biz.storage.vfs.VirtualFileSystem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sirius-biz Show documentation
Show all versions of sirius-biz Show documentation
Provides a framework for building web based business applications
/*
* Made with all the love in the world
* by scireum in Remshalden, Germany
*
* Copyright by scireum GmbH
* http://www.scireum.de - [email protected]
*/
package sirius.biz.storage.vfs;
import sirius.biz.storage.vfs.ftp.FTPBridge;
import sirius.kernel.Lifecycle;
import sirius.kernel.di.std.Part;
import sirius.kernel.di.std.Register;
import sirius.kernel.health.Log;
/**
* Permits to provide a virtual file system for outside applications to access internal data.
*
* Mainly, this will start an internal FTP server to make the file system accessible, but other connectors might be
* added in the future.
*/
@Register
public class VirtualFileSystem implements Lifecycle {
public static final Log LOG = Log.get("vfs");
@Part
private FTPBridge ftpBridge;
@Override
public void started() {
ftpBridge.createAndStartServer();
}
@Override
public void stopped() {
ftpBridge.stop();
}
@Override
public void awaitTermination() {
// Nothing to wait for
}
@Override
public String getName() {
return "Virtual File System";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy