[Minor] Added StrolchJob.hasComponent()
This commit is contained in:
parent
ad8098fedc
commit
dabdd18fc2
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue