All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softicar.platform.common.io.resource.static_.AbstractStaticResourceSupplier Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy