com.softicar.platform.common.io.resource.static_.AbstractStaticResourceSupplier 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.static_;
import com.softicar.platform.common.io.resource.IResource;
import com.softicar.platform.common.io.resource.key.ResourceKey;
public abstract class AbstractStaticResourceSupplier implements IStaticResourceSupplier {
protected final ResourceKey resourceKey;
protected final IResource staticResource;
public AbstractStaticResourceSupplier(IStaticResource staticResource) {
this.resourceKey = new ResourceKey(staticResource.getAnchorClass(), staticResource.getFilename().get());
this.staticResource = staticResource;
}
@Override
public ResourceKey getResourceKey() {
return resourceKey;
}
@Override
public IResource getStaticResource() {
return staticResource;
}
}