public String getMicroServiceName() { if (microServiceName == null) { if (microServiceName == null) { microServiceName = System.getenv("MICRO_SERVICE_NAME"); } if (microServiceName == null) { microServiceName = System.getenv("APP_NAME"); } if (microServiceName == null) { final String title = getContextBuilder().getTitle(); if (title != null && !title.isEmpty()) { microServiceName = title.toLowerCase().replace(" ", "."); } } if (microServiceName == null) { microServiceName = "my.app"; } } return microServiceName; }
public ContextMeta build() { return new ContextMeta(getTitle(), getRootURI(), getServices(), getDescription(), getContactName(), getContactURL(), getContactEmail(), getLicenseName(), getLicenseURL(), getVersion(), getHostAddress()); }
public ContextMeta build() { return new ContextMeta(getTitle(), getRootURI(), getServices(), getDescription(), getContactName(), getContactURL(), getContactEmail(), getLicenseName(), getLicenseURL(), getVersion(), getHostAddress()); }
public ContextMeta build() { return new ContextMeta(getTitle(), getRootURI(), getServices(), getDescription(), getContactName(), getContactURL(), getContactEmail(), getLicenseName(), getLicenseURL(), getVersion(), getHostAddress()); }