public static void addServerExecutorDependency ( ServiceBuilder < ? > serviceBuilder , InjectedValue < ExecutorService > injector , boolean optional ) { ServiceBuilder . DependencyType type = optional ? ServiceBuilder . DependencyType . OPTIONAL : ServiceBuilder . DependencyType . REQUIRED ; serviceBuilder . addDependency ( type , JBOSS_SERVER_EXECUTOR , ExecutorService . class , injector ) ; }
Adds the JBoss server executor as a dependency to the given service . Copied from org . jboss . as . server . Services - JBoss 7 . 2 . 0 . Final