Interface GettableComponent<T>
-
- Type Parameters:
T
- the component-type.
- All Superinterfaces:
AutoCloseable
public interface GettableComponent<T> extends AutoCloseable
Class for getting a configurable component.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes the created component.ComponentDescriptor<T>
descriptor()
Gets the descriptor for the component.T
get(Conf conf)
Gets the instance of typeGettableComponent
, which may be shared or independent.boolean
isEnable(ComponentConditionalContext<ComponentDescriptor<T>> conditionalContext)
boolean
isUnique()
-
-
-
Method Detail
-
get
T get(Conf conf)
Gets the instance of typeGettableComponent
, which may be shared or independent.- Parameters:
conf
- the configuration to be used if the component implementConfigurable
.- Returns:
- the component of type
GettableComponent
.
-
isEnable
boolean isEnable(ComponentConditionalContext<ComponentDescriptor<T>> conditionalContext)
-
isUnique
boolean isUnique()
-
descriptor
ComponentDescriptor<T> descriptor()
Gets the descriptor for the component.- Returns:
- the
ComponentDescriptor
.
-
close
void close()
Closes the created component.- Specified by:
close
in interfaceAutoCloseable
-
-