public class NFPropertyComponentFeature extends AbstractComponentFeature implements INFPropertyComponentFeature
Modifier and Type | Class and Description |
---|---|
static class |
NFPropertyComponentFeature.LateCounterListener<T>
Counter listener that allows to set the max after usage.
|
Modifier and Type | Field and Description |
---|---|
protected INFPropertyProvider |
compprovider
The component property provider.
|
static IComponentFeatureFactory |
FACTORY
The factory.
|
protected int |
maxreq
The max number of preserved req service providers.
|
protected INFPropertyProvider |
parent
The parent provider.
|
protected java.util.Map<IServiceIdentifier,INFMixedPropertyProvider> |
proserprops
The nf property providers for required services.
|
protected java.util.Map<IServiceIdentifier,INFMixedPropertyProvider> |
reqserprops
The nf property providers for required services.
|
cinfo, component, guesser
Constructor and Description |
---|
NFPropertyComponentFeature(IInternalAccess component,
ComponentCreationInfo cinfo)
Create the feature.
|
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<java.lang.Void> |
addNFMethodProperties(NFProperties nfprops,
IService ser,
jadex.commons.MethodInfo mi)
Add nf properties from a type.
|
jadex.commons.future.IFuture<java.lang.Void> |
addNFProperties(NFProperties nfprops,
IService ser)
Add nf properties from a type.
|
INFPropertyProvider |
getComponentPropertyProvider()
Get the component property provider.
|
<T> T |
getExternalFacade(java.lang.Object context)
Get external feature facade.
|
INFMixedPropertyProvider |
getProvidedServicePropertyProvider(IServiceIdentifier sid)
Get the provided service property provider for a service.
|
INFMixedPropertyProvider |
getRequiredServicePropertyProvider(IServiceIdentifier sid)
Get the required service property provider for a service.
|
boolean |
hasRequiredServicePropertyProvider(IServiceIdentifier sid)
Has the service a property provider.
|
jadex.commons.future.IFuture<java.lang.Void> |
init()
Initialize the feature.
|
jadex.commons.future.IFuture<java.lang.Void> |
initNFProperties(IInternalService ser,
java.lang.Class<?> impltype) |
body, getComponent, getExternalFacadeType, getParameterGuesser, getValueFetcher, kill, shutdown
public static final IComponentFeatureFactory FACTORY
protected INFPropertyProvider compprovider
protected java.util.Map<IServiceIdentifier,INFMixedPropertyProvider> proserprops
protected java.util.Map<IServiceIdentifier,INFMixedPropertyProvider> reqserprops
protected int maxreq
protected INFPropertyProvider parent
public NFPropertyComponentFeature(IInternalAccess component, ComponentCreationInfo cinfo)
public jadex.commons.future.IFuture<java.lang.Void> init()
init
in interface IComponentFeature
init
in class AbstractComponentFeature
public INFPropertyProvider getComponentPropertyProvider()
getComponentPropertyProvider
in interface INFPropertyComponentFeature
public INFMixedPropertyProvider getRequiredServicePropertyProvider(IServiceIdentifier sid)
getRequiredServicePropertyProvider
in interface INFPropertyComponentFeature
public boolean hasRequiredServicePropertyProvider(IServiceIdentifier sid)
hasRequiredServicePropertyProvider
in interface INFPropertyComponentFeature
public INFMixedPropertyProvider getProvidedServicePropertyProvider(IServiceIdentifier sid)
getProvidedServicePropertyProvider
in interface INFPropertyComponentFeature
public jadex.commons.future.IFuture<java.lang.Void> initNFProperties(IInternalService ser, java.lang.Class<?> impltype)
public jadex.commons.future.IFuture<java.lang.Void> addNFProperties(NFProperties nfprops, IService ser)
public jadex.commons.future.IFuture<java.lang.Void> addNFMethodProperties(NFProperties nfprops, IService ser, jadex.commons.MethodInfo mi)
public <T> T getExternalFacade(java.lang.Object context)
getExternalFacade
in class AbstractComponentFeature