Package io.hekate.core.service
Interface ConfigurationContext
-
public interface ConfigurationContext
Context forConfigurableService
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Collection<T>
findComponents(Class<T> type)
Searches for all components of the specified type.void
setBoolProperty(String name, boolean value)
Adds the specifiedservice property
.void
setIntProperty(String name, int value)
Adds the specifiedservice property
.void
setLongProperty(String name, long value)
Adds the specifiedservice property
.void
setStringProperty(String name, String value)
Adds the specifiedservice property
.
-
-
-
Method Detail
-
setStringProperty
void setStringProperty(String name, String value)
Adds the specifiedservice property
.- Parameters:
name
- Property name.value
- Property value (must be not-null
and not empty).
-
setIntProperty
void setIntProperty(String name, int value)
Adds the specifiedservice property
.- Parameters:
name
- Property name.value
- Property value.
-
setLongProperty
void setLongProperty(String name, long value)
Adds the specifiedservice property
.- Parameters:
name
- Property name.value
- Property value.
-
setBoolProperty
void setBoolProperty(String name, boolean value)
Adds the specifiedservice property
.- Parameters:
name
- Property name.value
- Property value.
-
findComponents
<T> Collection<T> findComponents(Class<T> type)
Searches for all components of the specified type.- Type Parameters:
T
- Component type.- Parameters:
type
- Component type.- Returns:
- Collections of matching components of an empty collection if there are no such components.
-
-