[New] Added AbstractService.getAgent()
This commit is contained in:
parent
401f77b807
commit
77e5cba353
|
@ -21,6 +21,7 @@ import static li.strolch.utils.helper.StringHelper.isNotEmpty;
|
||||||
import java.text.MessageFormat;
|
import java.text.MessageFormat;
|
||||||
|
|
||||||
import li.strolch.agent.api.ComponentContainer;
|
import li.strolch.agent.api.ComponentContainer;
|
||||||
|
import li.strolch.agent.api.StrolchAgent;
|
||||||
import li.strolch.agent.api.StrolchComponent;
|
import li.strolch.agent.api.StrolchComponent;
|
||||||
import li.strolch.agent.api.StrolchRealm;
|
import li.strolch.agent.api.StrolchRealm;
|
||||||
import li.strolch.exception.StrolchException;
|
import li.strolch.exception.StrolchException;
|
||||||
|
@ -98,6 +99,15 @@ public abstract class AbstractService<T extends ServiceArgument, U extends Servi
|
||||||
return this.container;
|
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}
|
* Returns the reference to the {@link PrivilegeHandler}
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue