[New] Added AbstractService.hasComponent()

This commit is contained in:
Robert von Burg 2020-08-05 23:44:46 +02:00
parent 9b608cce32
commit a1ef05a6b7
1 changed files with 12 additions and 0 deletions

View File

@ -133,6 +133,18 @@ public abstract class AbstractService<T extends ServiceArgument, U extends Servi
return this.container.getComponent(clazz);
}
/**
* Returns true if the given component is registered on the {@link ComponentContainer}
*
* @param clazz
* the type of component to check for
*
* @return true if the component is available
*/
public boolean hasComponent(Class<?> clazz) {
return this.container.hasComponent(clazz);
}
/**
* Returns the Strolch {@link RuntimeConfiguration}
*