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 booleanbooleanAn 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.inthashCode()voidsetAltRoute(String altRoute) voidsetProfiles(Set<String> profiles) Override the default configuration profiles associated with the component.voidvoidsetSampleCode(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, setPortsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.microservices.starter.core.environment.EnabledAware
setEnabledMethods 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: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
-
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
-