Package jadex.core.impl
Class SFeatureProvider
java.lang.Object
jadex.core.impl.SFeatureProvider
Static helper methods for dealing with features.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final List
<FeatureProvider<Object>> The available providers are cached at startup and do not change during runtime.protected static List
<IComponentLifecycleManager> The available providers are cached at startup and do not change during runtime.The providers by type are calculated on demand and cached for further use (comp_type -> map of (feature_type -> provider)). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<IComponentLifecycleManager> static Map
<Class<Object>, FeatureProvider<Object>> getProvidersForComponent
(Class<? extends Component> type) Helper method to get the providers, that are relevant for the given component type.static Collection
<FeatureProvider<Object>> Build an ordered list of component features.static RuntimeException
Helper method to convert (potentially) checked exceptions to unchecked ones.
-
Field Details
-
ALL_PROVIDERS
The available providers are cached at startup and do not change during runtime. -
PROVIDERS_BY_TYPE
protected static final Map<Class<? extends Component>,Map<Class<Object>, PROVIDERS_BY_TYPEFeatureProvider<Object>>> The providers by type are calculated on demand and cached for further use (comp_type -> map of (feature_type -> provider)). -
LIFECYCLE_PROVIDERS
The available providers are cached at startup and do not change during runtime.
-
-
Constructor Details
-
SFeatureProvider
public SFeatureProvider()
-
-
Method Details
-
getProvidersForComponent
public static Map<Class<Object>,FeatureProvider<Object>> getProvidersForComponent(Class<? extends Component> type) Helper method to get the providers, that are relevant for the given component type. -
getLifecycleProviders
-
throwUnchecked
Helper method to convert (potentially) checked exceptions to unchecked ones. -
orderComponentFeatures
public static Collection<FeatureProvider<Object>> orderComponentFeatures(Collection<FeatureProvider<Object>> provs) Build an ordered list of component features.- Parameters:
provs
- A list of component feature lists.- Returns:
- An ordered list of component features.
-