jodd.upload.JoddUpload Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jodd-upload Show documentation
Show all versions of jodd-upload Show documentation
Jodd Upload is library for managing uploads.
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved.
package jodd.upload;
import jodd.Jodd;
import jodd.JoddModule;
import jodd.upload.typeconverter.FileUploadBinder;
/**
* Jodd UPLOAD module.
*/
public class JoddUpload implements JoddModule {
// ---------------------------------------------------------------- module
static {
init();
}
public static void init() {
Jodd.init(JoddUpload.class);
}
public void start() {
if (Jodd.isModuleLoaded(Jodd.BEAN)) {
FileUploadBinder.registerTypeConverter();
}
}
}