[New] Added AbstractService.getAgent()

This commit is contained in:
Robert von Burg 2020-07-09 10:22:15 +02:00
parent 401f77b807
commit 77e5cba353
1 changed files with 10 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import static li.strolch.utils.helper.StringHelper.isNotEmpty;
import java.text.MessageFormat;
import li.strolch.agent.api.ComponentContainer;
import li.strolch.agent.api.StrolchAgent;
import li.strolch.agent.api.StrolchComponent;
import li.strolch.agent.api.StrolchRealm;
import li.strolch.exception.StrolchException;
@ -98,6 +99,15 @@ public abstract class AbstractService<T extends ServiceArgument, U extends Servi
return this.container;
}
/**
* Return the {@link StrolchAgent}
*
* @return the {@link StrolchAgent}
*/
protected final StrolchAgent getAgent() {
return this.container.getAgent();
}
/**
* Returns the reference to the {@link PrivilegeHandler}
*