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 boolean
boolean
An 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.int
hashCode()
void
setAltName
(String altName) void
setAltRoute
(String altRoute) void
setDockerEnvContribution
(Map<String, String> dockerEnvContribution) Optionally contribute ENV properties to the generated docker-compose.yml.void
Domain (DNS) information used at runtime for dynamic application configuration to negotiate gateway routing and interservice communication appropriately based on the deployed environment.void
setEditSource
(Boolean editSource) Components in the "other" category can generally be enabled for direct source editing via this property.void
setEnabled
(Boolean enabled) void
setImageUriOverride
(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
.void
void
void
toString()
-
Constructor Details
-
OtherComponent
public OtherComponent()
-
-
Method Details
-
getName
Description copied from interface:Identifiable
The name used to identify the component. Required.- Specified by:
getName
in interfaceDomainAware
- Specified by:
getName
in interfaceEnabledAware
- Specified by:
getName
in interfaceIdentifiable
-
getAltName
Description copied from interface:Identifiable
An 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:
getAltName
in interfaceIdentifiable
-
getDomain
Description copied from interface:Identifiable
Domain (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:
getDomain
in interfaceDomainAware
- Specified by:
getDomain
in interfaceIdentifiable
-
getEnabled
Description copied from interface:Identifiable
Whether 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:
getEnabled
in interfaceEnabledAware
- Specified by:
getEnabled
in interfaceIdentifiable
-
getPorts
Description copied from interface:Identifiable
The ports exposed and supported by the component. Required.- Specified by:
getPorts
in 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:Routed
Whether or not this service is included in the routing configuration supplied to the gateway service. Optional. True by default. -
getAltRoute
Description copied from interface:Routed
An additional route this component is known by in the gateway service. This is rarely used and is primarily leveraged by auth. Optional.- Specified by:
getAltRoute
in 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:DomainAware
Domain (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:
setDomain
in interfaceDomainAware
-
setEnabled
- Specified by:
setEnabled
in 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
-