@Default("22") public Integer getPort() { return port; }
protected String getDefaultValue(Method method) { Default defaultAnn = method.getAnnotation(Default.class); if (defaultAnn != null) { return defaultAnn.value();
Default defaultValue = method.getAnnotation(Default.class); if (defaultValue != null) { return defaultValue.value(); } else { Class<?> type = method.getReturnType();
/** * @return Default user login to set in the login dialog. */ @Property("cuba.web.loginDialogDefaultUser") @Default("admin") String getLoginDialogDefaultUser();
/** * @return Default user password to set in the login dialog. */ @Property("cuba.web.loginDialogDefaultPassword") @Default("admin") String getLoginDialogDefaultPassword();
/** * @return Path to the exception report email body template. */ @Property("cuba.email.exceptionReportEmailTemplateBody") @Default("/com/haulmont/cuba/core/app/exceptionemail/exception-report-template-body.gsp") String getExceptionReportEmailBodyTemplate();
/** * Default "from" address */ @Property("cuba.email.fromAddress") @Default("DoNotReply@localhost") String getFromAddress();
/** * @return response of the HTTP GET request on the health check URL */ @Property("cuba.healthCheckResponse") @Default("ok") String getHealthCheckResponse();
/** * @return Theme */ @Default("halo") @Property("cuba.web.theme") String getAppWindowTheme();
/** * @return Path to the exception report email subject template. */ @Property("cuba.email.exceptionReportEmailTemplateSubject") @Default("/com/haulmont/cuba/core/app/exceptionemail/exception-report-template-subject.gsp") String getExceptionReportEmailSubjectTemplate();
/** * User login used by asynchronous sending mechanism to be able to store information in the database. */ @Property("cuba.emailerUserLogin") @Default("admin") String getEmailerUserLogin(); }
@Override @Property("xero.appType") @Default("Public") String getAppType();
@Override @Property("xero.requestTokenUrl") @Default("https://api.xero.com/oauth/RequestToken") String getRequestTokenUrl();
@Override @Property("xero.authorizeUrl") @Default("https://api.xero.com/oauth/Authorize") String getAuthorizeUrl();
@Override @Property("xero.userAgent") @Default("Xero-Java-SDK") String getUserAgent();
@Override @Property("xero.usingAppFirewall") @Default("false") boolean isUsingAppFirewall();
/** * @return Default main window mode. * Takes place until the user did not change its own preference through user settings. */ @Property("cuba.web.appWindowMode") @Default("TABBED") String getAppWindowMode();
/** * @return GWT widgetset class */ @Property("cuba.web.widgetSet") @Default("com.haulmont.cuba.web.widgets.WidgetSet") String getWidgetSet();
/** * SMTP server address. */ @Property("cuba.email.smtpHost") @Default("test.host") String getSmtpHost();
/** * Scheduler will process no more than given number of queued messages per every scheduler tick. */ @Property("cuba.email.messageQueueCapacity") @Default("100") int getMessageQueueCapacity();