![JAR search and dependency download from the Maven repository](/logo.png)
jcommon.extract.ResourceCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of init Show documentation
Show all versions of init Show documentation
Java library for simple extracting and processing of embedded resources at runtime.
The newest version!
package jcommon.extract;
/**
* Implements {@link IResourceCallback} and provides genericized parameters
* for convencience.
*
* @author David Hoyt
*/
public abstract class ResourceCallback implements IResourceCallback {
//
private T param;
//
//
public ResourceCallback() {
init(null);
}
public ResourceCallback(final T Parameter) {
init(Parameter);
}
private void init(final T Parameter) {
this.param = Parameter;
}
//
//
public T getParameter() {
return param;
}
//
//
@Override
public void error(Resources resources) {
error(resources, param);
}
@Override
public void prepare(Resources resources) {
prepare(resources, param);
}
@Override
public void cancelled(Resources resources) {
cancelled(resources, param);
}
@Override
public void completed(Resources resources) {
completed(resources, param);
}
//
//
protected void error(Resources resources, T param) {
}
protected void prepare(Resources resources, T param) {
}
protected void cancelled(Resources resources, T param) {
}
//
//
protected abstract void completed(Resources resources, T param);
//
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy