com.softicar.platform.common.io.resource.supplier.ResourceSupplierFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.io.resource.supplier;
import com.softicar.platform.common.io.resource.static_.IStaticResource;
import java.nio.charset.Charset;
/**
* Convenience factory for instances of {@link IResourceSupplier}.
*
* @author Alexander Schmidt
*/
public class ResourceSupplierFactory extends AbstractResourceSupplierFactory {
public ResourceSupplierFactory(Class anchorClass) {
super(anchorClass);
}
public ResourceSupplierFactory(Class anchorClass, Charset charset) {
super(anchorClass, charset);
}
@Override
protected IResourceSupplier createSupplier(IStaticResource staticResource) {
return new ResourceSupplier(staticResource);
}
}