Class OtherComponent
java.lang.Object
com.microservices.starter.core.environment.OtherComponent
- All Implemented Interfaces:
DomainAware,EnabledAware,Identifiable,Routed,Serializable
Type of component definition that is neither a flexpackage or standard java microservice library
component. Generally, this type of component relates to JS projects, such as: admin starter,
nextjs commerce starter, and open api starter.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAn alternative name used to identify the component.An additional route this component is known by in the gateway service.Optionally contribute ENV properties to the generated docker-compose.yml.Domain (DNS) information used at runtime for dynamic application configuration to negotiate gateway routing and interservice communication appropriately based on the deployed environment.Components in the "other" category can generally be enabled for direct source editing via this property.Whether or not the component is enabled.The system will usually determine the image name for project generated components based on convention using a mixture of the component name, and docker related properties found inDocker.getName()The name used to identify the component.getPorts()The ports exposed and supported by the component.Whether or not this service is included in the routing configuration supplied to the gateway service.inthashCode()voidsetAltName(String altName) voidsetAltRoute(String altRoute) voidsetDockerEnvContribution(Map<String, String> dockerEnvContribution) Optionally contribute ENV properties to the generated docker-compose.yml.voidDomain (DNS) information used at runtime for dynamic application configuration to negotiate gateway routing and interservice communication appropriately based on the deployed environment.voidsetEditSource(Boolean editSource) Components in the "other" category can generally be enabled for direct source editing via this property.voidsetEnabled(Boolean enabled) voidsetImageUriOverride(String imageUriOverride) The system will usually determine the image name for project generated components based on convention using a mixture of the component name, and docker related properties found inDocker.voidvoidvoidtoString()
-
Constructor Details
-
OtherComponent
public OtherComponent()
-
-
Method Details
-
getName
Description copied from interface:IdentifiableThe name used to identify the component. Required.- Specified by:
getNamein interfaceDomainAware- Specified by:
getNamein interfaceEnabledAware- Specified by:
getNamein interfaceIdentifiable
-
getAltName
Description copied from interface:IdentifiableAn alternative name used to identify the component. Generally the longer version of the name for those components with long or descriptive names. Optional.- Specified by:
getAltNamein interfaceIdentifiable
-
getDomain
Description copied from interface:IdentifiableDomain (DNS) information used at runtime for dynamic application configuration to negotiate gateway routing and interservice communication appropriately based on the deployed environment. Required.- Specified by:
getDomainin interfaceDomainAware- Specified by:
getDomainin interfaceIdentifiable
-
getEnabled
Description copied from interface:IdentifiableWhether or not the component is enabled. Disabled flexpackage components are not included in docker-compose and are not included in generated project structure, disabled service library components are not included in generated project structure (in which case it is assumed Broadleaf's out-of-the-box version is used), and disabled "other" components are not included in docker-compose. Required.- Specified by:
getEnabledin interfaceEnabledAware- Specified by:
getEnabledin interfaceIdentifiable
-
getPorts
Description copied from interface:IdentifiableThe ports exposed and supported by the component. Required.- Specified by:
getPortsin interfaceIdentifiable
-
getEditSource
Components in the "other" category can generally be enabled for direct source editing via this property. The assembly zip with the original project source is downloaded and expanded so that it is available for customization. This is a special case and generally applies to front end code, such as commerce and admin starters. Optional. False by default. -
getImageUriOverride
The system will usually determine the image name for project generated components based on convention using a mixture of the component name, and docker related properties found inDocker. However, if a non-generated URI is desired to target the appropriate image for the component, it can be specified here. A valid URI would be something like:/my-prefix/my-name. Optional. Generated by default. -
getRouted
Description copied from interface:RoutedWhether or not this service is included in the routing configuration supplied to the gateway service. Optional. True by default. -
getAltRoute
Description copied from interface:RoutedAn additional route this component is known by in the gateway service. This is rarely used and is primarily leveraged by auth. Optional.- Specified by:
getAltRoutein interfaceRouted
-
getDockerEnvContribution
Optionally contribute ENV properties to the generated docker-compose.yml. This can be useful if certain other components (e.g. storefronts) require additional configuration parameters as part of running in a docker environment.The Map of property keys and corresponding values.
For example: {NEXT_PUBLIC_TENANT_RESOLVER_APPLICATION_RESOLUTION: url}
-
setName
-
setAltName
-
setDomain
Description copied from interface:DomainAwareDomain (DNS) information used at runtime for dynamic application configuration to negotiate gateway routing and interservice communication appropriately based on the deployed environment. Required.- Specified by:
setDomainin interfaceDomainAware
-
setEnabled
- Specified by:
setEnabledin interfaceEnabledAware
-
setPorts
-
setEditSource
Components in the "other" category can generally be enabled for direct source editing via this property. The assembly zip with the original project source is downloaded and expanded so that it is available for customization. This is a special case and generally applies to front end code, such as commerce and admin starters. Optional. False by default. -
setImageUriOverride
The system will usually determine the image name for project generated components based on convention using a mixture of the component name, and docker related properties found inDocker. However, if a non-generated URI is desired to target the appropriate image for the component, it can be specified here. A valid URI would be something like:/my-prefix/my-name. Optional. Generated by default. -
setRouted
-
setAltRoute
-
setDockerEnvContribution
Optionally contribute ENV properties to the generated docker-compose.yml. This can be useful if certain other components (e.g. storefronts) require additional configuration parameters as part of running in a docker environment.The Map of property keys and corresponding values.
For example: {NEXT_PUBLIC_TENANT_RESOLVER_APPLICATION_RESOLUTION: url}
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-