test_class.declarator: servletContext
test_class.modifier: private
test_class.original_string: private ServletContext    servletContext;
test_class.type: ServletContext
test_class.var_name: servletContext
test_class.declarator: scannedClasses
test_class.modifier: private
test_class.original_string: private HashSet<Class<?>> scannedClasses;
test_class.type: HashSet<Class<?>>
test_class.var_name: scannedClasses
test_class.file: everrest-core/src/test/java/org/everrest/core/servlet/EverrestServletContextInitializerTest.java
test_class.identifier: EverrestServletContextInitializerTest
test_case.body: @Test
      public void createsApplicationIsConfiguredInServletContext() {
          when(servletContext.getInitParameter("javax.ws.rs.Application")).thenReturn(SomeApplication.class.getName());
  
          EverrestServletContextInitializer everrestServletContextInitializer = new EverrestServletContextInitializer(servletContext);
  
          Application application = everrestServletContextInitializer.getApplication();
          assertEquals(SomeApplication.class, application.getClass());
      }
test_case.class_method_signature: EverrestServletContextInitializerTest.createsApplicationIsConfiguredInServletContext()
test_case.full_signature: @Test public void createsApplicationIsConfiguredInServletContext()
test_case.identifier: createsApplicationIsConfiguredInServletContext
test_case.invocations: thenReturn when getInitParameter getName getApplication assertEquals getClass
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void createsApplicationIsConfiguredInServletContext()
focal_class.declarator: LOG = LoggerFactory.getLogger(EverrestServletContextInitializer.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(EverrestServletContextInitializer.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: EVERREST_SCAN_COMPONENTS    = "org.everrest.scan.components"
focal_class.modifier: public static final
focal_class.original_string: public static final String EVERREST_SCAN_COMPONENTS    = "org.everrest.scan.components";
focal_class.type: String
focal_class.var_name: EVERREST_SCAN_COMPONENTS
focal_class.declarator: EVERREST_SCAN_SKIP_PACKAGES = "org.everrest.scan.skip.packages"
focal_class.modifier: public static final
focal_class.original_string: public static final String EVERREST_SCAN_SKIP_PACKAGES = "org.everrest.scan.skip.packages";
focal_class.type: String
focal_class.var_name: EVERREST_SCAN_SKIP_PACKAGES
focal_class.declarator: JAXRS_APPLICATION           = "javax.ws.rs.Application"
focal_class.modifier: public static final
focal_class.original_string: public static final String JAXRS_APPLICATION           = "javax.ws.rs.Application";
focal_class.type: String
focal_class.var_name: JAXRS_APPLICATION
focal_class.declarator: servletContext
focal_class.modifier: protected final
focal_class.original_string: protected final ServletContext servletContext;
focal_class.type: ServletContext
focal_class.var_name: servletContext
focal_class.file: everrest-core/src/main/java/org/everrest/core/servlet/EverrestServletContextInitializer.java
focal_class.identifier: EverrestServletContextInitializer
focal_class.class_method_signature: EverrestServletContextInitializer.EverrestServletContextInitializer(ServletContext servletContext)
focal_class.full_signature: public  EverrestServletContextInitializer(ServletContext servletContext)
focal_class.identifier: EverrestServletContextInitializer
focal_class.modifiers: public
focal_class.parameters: (ServletContext servletContext)
focal_class.signature:  EverrestServletContextInitializer(ServletContext servletContext)
focal_class.class_method_signature: EverrestServletContextInitializer.getApplication()
focal_class.full_signature: public Application getApplication()
focal_class.identifier: getApplication
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Application
focal_class.signature: Application getApplication()
focal_class.class_method_signature: EverrestServletContextInitializer.createConfiguration()
focal_class.full_signature: public EverrestConfiguration createConfiguration()
focal_class.identifier: createConfiguration
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: EverrestConfiguration
focal_class.signature: EverrestConfiguration createConfiguration()
focal_class.class_method_signature: EverrestServletContextInitializer.createRequestHandler()
focal_class.full_signature: public RequestHandler createRequestHandler()
focal_class.identifier: createRequestHandler
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: RequestHandler
focal_class.signature: RequestHandler createRequestHandler()
focal_class.class_method_signature: EverrestServletContextInitializer.createRequestDispatcher()
focal_class.full_signature: public RequestDispatcher createRequestDispatcher()
focal_class.identifier: createRequestDispatcher
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: RequestDispatcher
focal_class.signature: RequestDispatcher createRequestDispatcher()
focal_class.class_method_signature: EverrestServletContextInitializer.createResourceBinder()
focal_class.full_signature: public ResourceBinder createResourceBinder()
focal_class.identifier: createResourceBinder
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ResourceBinder
focal_class.signature: ResourceBinder createResourceBinder()
focal_class.class_method_signature: EverrestServletContextInitializer.getDependencySupplier()
focal_class.full_signature: public DependencySupplier getDependencySupplier()
focal_class.identifier: getDependencySupplier
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DependencySupplier
focal_class.signature: DependencySupplier getDependencySupplier()
focal_class.class_method_signature: EverrestServletContextInitializer.createProviderBinder()
focal_class.full_signature: public ProviderBinder createProviderBinder()
focal_class.identifier: createProviderBinder
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ProviderBinder
focal_class.signature: ProviderBinder createProviderBinder()
focal_class.class_method_signature: EverrestServletContextInitializer.getEverrestApplication(EverrestConfiguration configuration)
focal_class.full_signature: private EverrestApplication getEverrestApplication(EverrestConfiguration configuration)
focal_class.identifier: getEverrestApplication
focal_class.modifiers: private
focal_class.parameters: (EverrestConfiguration configuration)
focal_class.return: EverrestApplication
focal_class.signature: EverrestApplication getEverrestApplication(EverrestConfiguration configuration)
focal_class.class_method_signature: EverrestServletContextInitializer.createEverrestProcessor()
focal_class.full_signature: public EverrestProcessor createEverrestProcessor()
focal_class.identifier: createEverrestProcessor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: EverrestProcessor
focal_class.signature: EverrestProcessor createEverrestProcessor()
focal_class.class_method_signature: EverrestServletContextInitializer.getParameterNames()
focal_class.full_signature: protected List<String> getParameterNames()
focal_class.identifier: getParameterNames
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getParameterNames()
focal_class.class_method_signature: EverrestServletContextInitializer.getParameter(String name)
focal_class.full_signature: protected String getParameter(String name)
focal_class.identifier: getParameter
focal_class.modifiers: protected
focal_class.parameters: (String name)
focal_class.return: String
focal_class.signature: String getParameter(String name)
focal_class.class_method_signature: EverrestServletContextInitializer.getParameter(String name, String def)
focal_class.full_signature: protected String getParameter(String name, String def)
focal_class.identifier: getParameter
focal_class.modifiers: protected
focal_class.parameters: (String name, String def)
focal_class.return: String
focal_class.signature: String getParameter(String name, String def)
focal_class.class_method_signature: EverrestServletContextInitializer.getBoolean(String name, boolean def)
focal_class.full_signature: protected boolean getBoolean(String name, boolean def)
focal_class.identifier: getBoolean
focal_class.modifiers: protected
focal_class.parameters: (String name, boolean def)
focal_class.return: boolean
focal_class.signature: boolean getBoolean(String name, boolean def)
focal_class.class_method_signature: EverrestServletContextInitializer.getNumber(String name, double def)
focal_class.full_signature: protected Double getNumber(String name, double def)
focal_class.identifier: getNumber
focal_class.modifiers: protected
focal_class.parameters: (String name, double def)
focal_class.return: Double
focal_class.signature: Double getNumber(String name, double def)
focal_method.body: public Application getApplication() {
          Application application = null;
          String applicationFQN = getParameter(JAXRS_APPLICATION);
          boolean scan = getBoolean(EVERREST_SCAN_COMPONENTS, false);
          if (applicationFQN != null) {
              if (scan) {
                  String msg = "Scan of JAX-RS components is disabled cause to specified 'javax.ws.rs.Application'.";
                  LOG.warn(msg);
              }
              try {
                  Class<?> cl = Thread.currentThread().getContextClassLoader().loadClass(applicationFQN);
                  application = (Application)cl.newInstance();
              } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) {
                  throw new RuntimeException(e);
              }
          } else if (scan) {
              application = new Application() {
                  @Override
                  public Set<Class<?>> getClasses() {
                      return new LinkedHashSet<>(ComponentFinder.findComponents());
                  }
              };
          }
          return application;
      }
focal_method.class_method_signature: EverrestServletContextInitializer.getApplication()
focal_method.full_signature: public Application getApplication()
focal_method.identifier: getApplication
focal_method.invocations: getParameter getBoolean warn loadClass getContextClassLoader currentThread newInstance findComponents
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Application
focal_method.signature: Application getApplication()