[Minor] Added StrolchJob.hasComponent()

This commit is contained in:
Robert von Burg 2021-01-06 12:51:35 +01:00
parent ad8098fedc
commit dabdd18fc2
1 changed files with 12 additions and 0 deletions

View File

@ -214,6 +214,18 @@ public abstract class StrolchJob implements Runnable, Restrictable {
return getContainer().getComponent(clazz);
}
/**
* Returns true if the given component is registered on this container
*
* @param clazz
* the type of component to check for
*
* @return true if the component is available
*/
public boolean hasComponent(Class<?> clazz) {
return this.getContainer().hasComponent(clazz);
}
/**
* Opens a {@link StrolchTransaction} for the default realm and certificate
*