diff --git a/li.strolch.agent/src/main/java/li/strolch/job/StrolchJob.java b/li.strolch.agent/src/main/java/li/strolch/job/StrolchJob.java index 31c942a40..9489c7d66 100644 --- a/li.strolch.agent/src/main/java/li/strolch/job/StrolchJob.java +++ b/li.strolch.agent/src/main/java/li/strolch/job/StrolchJob.java @@ -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 *