Open Kilda Java Documentation
ServerContext.java
Go to the documentation of this file.
1
package
org.openkilda.auth.context;
2
3
import
org
.springframework.beans.factory.annotation.Autowired;
4
import
org
.springframework.context.ApplicationContext;
5
import
org
.springframework.stereotype.Component;
6
7
import
org
.
openkilda
.
auth
.
model
.
RequestContext
;
8
9
@Component
10
public
class
ServerContext
{
11
12
@Autowired
13
private
ApplicationContext context;
14
15
public
RequestContext
getRequestContext
() {
16
return
context.getBean(
RequestContext
.class);
17
}
18
19
public <T> T getBean(
final
Class<T> beanClass) {
20
return
context.getBean(beanClass);
21
}
22
}
org.openkilda.auth
org
org.openkilda.auth.model
Definition:
Permissions.java:1
org.openkilda.auth.context.ServerContext
Definition:
ServerContext.java:10
org.openkilda
org.openkilda.auth.model.RequestContext
Definition:
RequestContext.java:10
org.openkilda.auth.context.ServerContext.getRequestContext
RequestContext getRequestContext()
Definition:
ServerContext.java:15
open-kilda-develop
services
src
openkilda-gui
src
main
java
org
openkilda
auth
context
ServerContext.java
Generated by
1.8.14