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 
8 
9 @Component
10 public class ServerContext {
11 
12  @Autowired
13  private ApplicationContext context;
14 
16  return context.getBean(RequestContext.class);
17  }
18 
19  public <T> T getBean(final Class<T> beanClass) {
20  return context.getBean(beanClass);
21  }
22 }