class_docstr: Class to be used as a decorator to register all AppIntegration subclasses
docstr: Return the proper app integration class for this service
  
  Args:
      config (AppConfig): Loaded configuration with service, etc
      init (bool): Whether or not this class should be instantiated with
          the config that has been passed in
  
  Returns:
      AppIntegration: Subclass of AppIntegration corresponding to the config
  
  Raises:
      AppException: Error is raised if the requested app does not exist
docstr_tok: ["Return","the","proper","app","integration","class","for","this","service","Args",":","config","(","AppConfig",")",":","Loaded","configuration","with","service",",","etc","init","(","bool",")",":","Whether","or","not","this","class","should","be","instantiated","with","the","config","that","has","been","passed","in","Returns",":","AppIntegration",":","Subclass","of","AppIntegration","corresponding","to","the","config","Raises",":","AppException",":","Error","is","raised","if","the","requested","app","does","not","exist"]
code: def get_app(cls, app_type):
      """Return the proper app integration class for this service
  
      Args:
          config (AppConfig): Loaded configuration with service, etc
          init (bool): Whether or not this class should be instantiated with
              the config that has been passed in
  
      Returns:
          AppIntegration: Subclass of AppIntegration corresponding to the config
  
      Raises:
          AppException: Error is raised if the requested app does not exist
      """
      try:
          return cls._apps[app_type]
      except KeyError:
          raise AppException(
              "App integration does not exist for type: {}".format(
                  app_type
              )
          )
  
file_path: streamalert/streamalert/apps/__init__.py
imports: import importlib
  import logging
  import os
  from streamalert.apps.exceptions import AppException
label_desc: Use image node_id 2 for calling the StreamAlertApp obj's underlying member method code with example usage: obj.get_app(cls, app_type) and returns: cls