= Core Runtime Services
:page-role: -toc -narrow


:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR  CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

include::../section-hooks/isis.core.runtime-services~pre.adoc[]

[cols="3a,2a,5a", options="header"]
|===
|Property
|Default
|Description
|
[[isis.core.runtime-services.application-features.init]]
isis.core.runtime-services. +
application-features.init

| 
| Whether the ``ApplicationFeatureRepository`` (or the default implementation of that service, at least) should compute the set of ``ApplicationFeature`` that describe the metamodel eagerly, or lazily.


|
[[isis.core.runtime-services.email.override.bcc]]
isis.core.runtime-services.email. +
override.bcc

| 
| Intended for testing purposes only, if set then the requested ``bcc:`` of the email will be ignored, and instead sent to this email address instead.


|
[[isis.core.runtime-services.email.override.cc]]
isis.core.runtime-services.email. +
override.cc

| 
| Intended for testing purposes only, if set then the requested ``cc:`` of the email will be ignored, and instead sent to this email address instead.


|
[[isis.core.runtime-services.email.override.to]]
isis.core.runtime-services.email. +
override.to

| 
| Intended for testing purposes only, if set then the requested ``to:`` of the email will be ignored, and instead sent to this email address instead.


|
[[isis.core.runtime-services.email.port]]
isis.core.runtime-services.email. +
port

| 
| The port to use for sending email.


|
[[isis.core.runtime-services.email.sender.address]]
isis.core.runtime-services.email. +
sender.address

| 
| Specifies the email address of the user sending the email.

If the username is not specified, is also used as the username to connect to the SMTP service.

This configuration property is mandatory (for the default implementation of the ``EmailService``, at least).


|
[[isis.core.runtime-services.email.sender.hostname]]
isis.core.runtime-services.email. +
sender.hostname

| 
| Specifies the host running the SMTP service.

If not specified, then the value used depends upon the email implementation. The default implementation will use the ``host`` system property.


|
[[isis.core.runtime-services.email.sender.password]]
isis.core.runtime-services.email. +
sender.password

| 
| Specifies the password (corresponding to the username to connect to the SMTP service.

This configuration property is mandatory (for the default implementation of the ``EmailService``, at least).


|
[[isis.core.runtime-services.email.sender.username]]
isis.core.runtime-services.email. +
sender.username

| 
| Specifies the username to use to connect to the SMTP service.

If not specified, then the sender's email address will be used instead.


|
[[isis.core.runtime-services.email.socket-connection-timeout]]
isis.core.runtime-services.email. +
socket-connection-timeout

| 
| The maximum number of millseconds to wait to obtain a socket connection before timing out.


|
[[isis.core.runtime-services.email.socket-timeout]]
isis.core.runtime-services.email. +
socket-timeout

| 
| The maximum number of millseconds to wait to obtain a socket before timing out.


|
[[isis.core.runtime-services.email.throw-exception-on-fail]]
isis.core.runtime-services.email. +
throw-exception-on-fail

| 
| If an email fails to send, whether to propagate the exception (meaning that potentially the end-user might see the exception), or whether instead to just indicate failure through the return value of the method (List, List, String, String, DataSource...) that's being called.


|
[[isis.core.runtime-services.email.tls.enabled]]
isis.core.runtime-services.email. +
tls.enabled

| 
| Whether TLS encryption should be started (that is, ``STARTTLS``).


|
[[isis.core.runtime-services.exception-recognizer.dae.disable]]
isis.core.runtime-services. +
exception-recognizer.dae.disable

| 
| Whether the ``ExceptionRecognizer`` implementation for Spring's DataAccessException - which attempts to sanitize any exceptions arising from object stores - should be disabled (meaning that exceptions will potentially propagate as more serious to the end user).


|
[[isis.core.runtime-services.repository-service.disable-auto-flush]]
isis.core.runtime-services. +
repository-service. +
disable-auto-flush

| 
| Normally any queries are automatically preceded by flushing pending executions.

This key allows this behaviour to be disabled.

NOTE: this key is redundant for JPA/EclipseLink, which supports its own auto-flush using https://www.eclipse.org/eclipselink/documentation/2.7/jpa/extensions/persistenceproperties_ref.htm#BABDHEEB[eclipselink.persistence-context.flush-mode]


|
[[isis.core.runtime-services.translation.po.mode]]
isis.core.runtime-services. +
translation.po.mode

| 
| Specifies the initial mode for obtaining/discovering translations.

There are three modes:

* The default mode of write is appropriate for integration testing or prototyping, meaning that the service records any requests made of it but just returns the string unaltered. This is a good way to discover new strings that require translation.
* The read mode is appropriate for production; the service looks up translations that have previously been captured.
* The disabled performs no translation and simply returns the original string unchanged. Unlike the write mode, it does _not_ keep track of translation requests.


|
[[isis.core.runtime-services.translation.resource-location]]
isis.core.runtime-services. +
translation.resource-location

| 
| Specifies the relative resource path to look for translation files.

If \{@code null} uses \{@code servletContext.getResource("/WEB-INF/")}.

Replaces the former Servlet context parameter 'isis.config.dir';



|===

include::../section-hooks/isis.core.runtime-services~post.adoc[]
