Class FeatureFactoryImpl<FeatureEndpointType extends FeatureEndpoint>
- java.lang.Object
-
- com.opencloud.sentinel.feature.impl.FeatureFactoryImpl<FeatureEndpointType>
-
- All Implemented Interfaces:
com.opencloud.sentinel.feature.spi.FeatureFactory
public final class FeatureFactoryImpl<FeatureEndpointType extends FeatureEndpoint> extends java.lang.Object implements com.opencloud.sentinel.feature.spi.FeatureFactory
-
-
Constructor Summary
Constructors Constructor Description FeatureFactoryImpl(java.lang.String factoryName, com.opencloud.sentinel.feature.spi.FeatureCollection featureCollection, FeatureEndpointType caller, com.opencloud.sentinel.common.SentinelExtensionsCMPFieldsAccess cmpAccess)Create a feature factory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFactoryName()SentinelFeaturegetSentinelFeature(java.lang.String name)voidinitialise(SentinelPlatformConfigurationReader sentinelConfigurationReader, com.opencloud.sentinel.feature.spi.SentinelFeatureRegisterImpl featureRegisterImpl, com.opencloud.sce.fsmtool.Facilities facilities, java.util.Map<java.lang.String,java.lang.Object> providers, com.opencloud.sentinel.stats.SentinelFeatureStatsAccess statsAccess, com.opencloud.sentinel.feature.common.lists.AddressListCollection addressListCollection, com.opencloud.rhino.facilities.childrelations.ChildRelationFacility childRelationFacility, com.opencloud.sentinel.feature.sbb.SentinelFeatureSbbSupport featureSbbSupport, com.opencloud.sentinel.feature.spi.init.SentinelTracerSupport sentinelTracerSupport, com.opencloud.sentinel.feature.spi.init.SentinelFrontEnd sentinelFrontEnd, MapperLibrary<?> mapperLibrary, MapperFacilities mapperFacilities, LimiterFilterConditionAccess limiterFilterConditionAccess)Initialise a feature factory with additional dependencies neededjava.lang.StringtoString()
-
-
-
Constructor Detail
-
FeatureFactoryImpl
public FeatureFactoryImpl(java.lang.String factoryName, com.opencloud.sentinel.feature.spi.FeatureCollection featureCollection, FeatureEndpointType caller, com.opencloud.sentinel.common.SentinelExtensionsCMPFieldsAccess cmpAccess)Create a feature factory- Parameters:
factoryName- name of the factoryfeatureCollection- the collection of features in the factorycaller- the user of the factorycmpAccess- access to CMP state for features
-
-
Method Detail
-
initialise
public void initialise(SentinelPlatformConfigurationReader sentinelConfigurationReader, com.opencloud.sentinel.feature.spi.SentinelFeatureRegisterImpl featureRegisterImpl, com.opencloud.sce.fsmtool.Facilities facilities, java.util.Map<java.lang.String,java.lang.Object> providers, com.opencloud.sentinel.stats.SentinelFeatureStatsAccess statsAccess, com.opencloud.sentinel.feature.common.lists.AddressListCollection addressListCollection, com.opencloud.rhino.facilities.childrelations.ChildRelationFacility childRelationFacility, com.opencloud.sentinel.feature.sbb.SentinelFeatureSbbSupport featureSbbSupport, com.opencloud.sentinel.feature.spi.init.SentinelTracerSupport sentinelTracerSupport, com.opencloud.sentinel.feature.spi.init.SentinelFrontEnd sentinelFrontEnd, MapperLibrary<?> mapperLibrary, MapperFacilities mapperFacilities, LimiterFilterConditionAccess limiterFilterConditionAccess)
Initialise a feature factory with additional dependencies needed- Parameters:
sentinelConfigurationReader- platform level sentinel configurationfeatureRegisterImpl- the feature register that holds the current active featurefacilities- facilities features should useproviders- access to the ra providers for featuresstatsAccess- access to usage statsaddressListCollection- access to address listsfeatureSbbSupport- for sbb based featuressentinelTracerSupport- for pojo features that use FSMssentinelFrontEnd- for pojo features that use FSMsmapperLibrary- access to mappersmapperFacilities- facilities that mappers uselimiterFilterConditionAccess- access to per-feature limiter filter conditions
-
getFactoryName
public java.lang.String getFactoryName()
-
getSentinelFeature
public SentinelFeature getSentinelFeature(java.lang.String name)
- Specified by:
getSentinelFeaturein interfacecom.opencloud.sentinel.feature.spi.FeatureFactory
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-