[New] Added AbstractService.hasComponent()
This commit is contained in:
parent
9b608cce32
commit
a1ef05a6b7
|
@ -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}
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue