Package com.hazelcast.config
Class AbstractBaseFactoryWithPropertiesConfig<T extends AbstractBaseFactoryWithPropertiesConfig<T>>
java.lang.Object
com.hazelcast.config.AbstractBaseFactoryWithPropertiesConfig<T>
- Type Parameters:
T
- final child type
- Direct Known Subclasses:
AbstractFactoryWithPropertiesConfig
,AccessControlServiceConfig
public abstract class AbstractBaseFactoryWithPropertiesConfig<T extends AbstractBaseFactoryWithPropertiesConfig<T>>
extends Object
Configuration base for config types with a factory class and its properties.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the factory class name.Gets all properties.getProperty
(String name) Gets a property.int
hashCode()
protected abstract T
self()
setFactoryClassName
(String factoryClassName) Sets the factory class name.setProperties
(Properties properties) Sets the properties.setProperty
(String name, String value) Sets a single property.toString()
-
Field Details
-
factoryClassName
-
properties
-
-
Constructor Details
-
AbstractBaseFactoryWithPropertiesConfig
public AbstractBaseFactoryWithPropertiesConfig()
-
-
Method Details
-
getFactoryClassName
Returns the factory class name. -
setFactoryClassName
Sets the factory class name. -
setProperty
Sets a single property.- Parameters:
name
- the name of the property to setvalue
- the value of the property to set- Returns:
- the updated config object (self)
- Throws:
NullPointerException
- if name or value isnull
-
getProperty
Gets a property.- Parameters:
name
- the name of the property to get- Returns:
- the value of the property, null if not found
- Throws:
NullPointerException
- if name isnull
-
getProperties
Gets all properties.- Returns:
- the properties
-
setProperties
Sets the properties.- Parameters:
properties
- the properties to set- Returns:
- the updated config object (self)
- Throws:
IllegalArgumentException
- if properties isnull
-
toString
-
equals
-
hashCode
public int hashCode() -
self
-