Class LibraryComponent
java.lang.Object
com.microservices.starter.core.environment.Component
com.microservices.starter.core.environment.LibraryComponent
- All Implemented Interfaces:
DomainAware
,EnabledAware
,Identifiable
,Routed
,Serializable
Type of component that relates to microservice source code. This is different than a
FlexComponent
whose purpose is to simply expose the application runtime and Docker image
for the microservice. LibraryComponents are where code and extensions are introduced to modify
the behavior of the microservice.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
An additional route this component is known by in the gateway service.Override the default configuration profiles associated with the component.Whether or not this service is included in the routing configuration supplied to the gateway service.Whether or not to include sample code (autoconfiguration, sample domain, and test) for an enabled service library component during project structure generation.int
hashCode()
void
setAltRoute
(String altRoute) void
setProfiles
(Set<String> profiles) Override the default configuration profiles associated with the component.void
void
setSampleCode
(Boolean sampleCode) Whether or not to include sample code (autoconfiguration, sample domain, and test) for an enabled service library component during project structure generation.toString()
Methods inherited from class com.microservices.starter.core.environment.Component
getAltName, getDataSource, getDomain, getEnabled, getName, getPackageIdentifier, getPorts, setAltName, setDataSource, setDomain, setEnabled, setName, setPackageIdentifier, setPorts
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.microservices.starter.core.environment.EnabledAware
setEnabled
Methods inherited from interface com.microservices.starter.core.environment.Identifiable
getAltName, getDomain, getEnabled, getName, getPorts
-
Constructor Details
-
LibraryComponent
public LibraryComponent()
-
-
Method Details
-
getSampleCode
Whether or not to include sample code (autoconfiguration, sample domain, and test) for an enabled service library component during project structure generation. Optional. False 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
-
getProfiles
Override the default configuration profiles associated with the component. These profiles drive the properties that are included in the generated project config directories for each flex package. A library component is a member of a flex package, and the properties generated for the flex package are a union of all the properties associated with profiles for all the library components. SeeEnvironmentReportContributor#profiles(String, Set)
for more details. -
setSampleCode
Whether or not to include sample code (autoconfiguration, sample domain, and test) for an enabled service library component during project structure generation. Optional. False by default. -
setRouted
-
setAltRoute
-
setProfiles
Override the default configuration profiles associated with the component. These profiles drive the properties that are included in the generated project config directories for each flex package. A library component is a member of a flex package, and the properties generated for the flex package are a union of all the properties associated with profiles for all the library components. SeeEnvironmentReportContributor#profiles(String, Set)
for more details. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-