Class ComponentSetting
- java.lang.Object
-
- AbstractServiceSetting
-
- com.supermap.server.config.ComponentSetting
-
- All Implemented Interfaces:
- java.io.Serializable
public class ComponentSetting extends AbstractServiceSetting implements java.io.Serializablethe configuration information of the service component.
The service component is composed of the configuration information of the service component and lists of the service provider.
- See Also:
ComponentContext
-
-
Field Summary
Fields Modifier and Type Field and Description java.lang.StringdisabledInterfaceNamesThe service interface name list whose service instants are stopped.booleanenabledWhether the service component is usable.intinstanceCountThe expected number of instance under multiple threads.java.lang.StringinterfaceNamesThe service interface name list whose services are published by service component.java.lang.StringprovidersThe name of service providers.
-
Constructor Summary
Constructors Constructor and Description ComponentSetting()ComponentSetting(ComponentSetting setting)
-
Method Summary
Methods Modifier and Type Method and Description ComponentSettingcopy()Copies.booleanequals(java.lang.Object obj)inthashCode()Gets the hash value of the object instance
-
-
-
Field Detail
-
providers
public java.lang.String providers
The name of service providers.
A string separated by a comma. Can be Provider or Provider name. It can also be multiple Providers or multiple ProviderSets. Such as "“provider1,providerSet1".
-
enabled
public boolean enabled
Whether the service component is usable. The default is true, indicating usable.
-
interfaceNames
public java.lang.String interfaceNames
The service interface name list whose services are published by service component. The interface name is separated by comma.
-
disabledInterfaceNames
public java.lang.String disabledInterfaceNames
The service interface name list whose service instants are stopped. The interface name is separated by comma.
-
instanceCount
public int instanceCount
The expected number of instance under multiple threads.
-
-
Constructor Detail
-
ComponentSetting
public ComponentSetting()
-
ComponentSetting
public ComponentSetting(ComponentSetting setting)
-
-
Method Detail
-
copy
public final ComponentSetting copy()
Copies. Generates a new ComponentSetting object exactly the same as the original one.
- Returns:
- the configuration object of the service component.
-
equals
public final boolean equals(java.lang.Object obj)
-
hashCode
public final int hashCode()
Gets the hash value of the object instance- Returns:
- hash value
-
-