summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_application.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@gmail.com>2019-02-28 18:02:42 +0300
committerMax Romanov <max.romanov@gmail.com>2019-02-28 18:02:42 +0300
commit5bfdebb9e4161a689113d73775498949a09d7fb5 (patch)
treefcb69169e3da983db0eb1f48d2dccc2ac2ff867b /src/nxt_application.h
parentec7319d32c9c41597a99a9422ff324c97a92bb21 (diff)
downloadunit-5bfdebb9e4161a689113d73775498949a09d7fb5.tar.gz
unit-5bfdebb9e4161a689113d73775498949a09d7fb5.tar.bz2
Introducing Java Servlet Container beta.
Diffstat (limited to 'src/nxt_application.h')
-rw-r--r--src/nxt_application.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nxt_application.h b/src/nxt_application.h
index fe8113c6..781f05e0 100644
--- a/src/nxt_application.h
+++ b/src/nxt_application.h
@@ -20,6 +20,7 @@ typedef enum {
NXT_APP_PHP,
NXT_APP_PERL,
NXT_APP_RUBY,
+ NXT_APP_JAVA,
NXT_APP_UNKNOWN,
} nxt_app_type_t;
@@ -70,6 +71,14 @@ typedef struct {
} nxt_ruby_app_conf_t;
+typedef struct {
+ nxt_conf_value_t *classpath;
+ char *webapp;
+ nxt_conf_value_t *options;
+ char *unit_jars;
+} nxt_java_app_conf_t;
+
+
struct nxt_common_app_conf_s {
nxt_str_t name;
nxt_str_t type;
@@ -85,6 +94,7 @@ struct nxt_common_app_conf_s {
nxt_php_app_conf_t php;
nxt_perl_app_conf_t perl;
nxt_ruby_app_conf_t ruby;
+ nxt_java_app_conf_t java;
} u;
};
@@ -152,6 +162,8 @@ struct nxt_app_module_s {
nxt_str_t type;
const char *version;
+ nxt_int_t (*pre_init)(nxt_task_t *task,
+ nxt_common_app_conf_t *conf);
nxt_int_t (*init)(nxt_task_t *task,
nxt_common_app_conf_t *conf);
};