public final class FeatureFactoryImpl<FeatureEndpointType extends FeatureEndpoint>
extends java.lang.Object
Constructor and Description |
---|
FeatureFactoryImpl(java.lang.String factoryName,
FeatureCollection featureCollection,
FeatureEndpointType caller,
com.opencloud.sentinel.common.SentinelExtensionsCMPFieldsAccess cmpAccess)
Create a feature factory
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFactoryName() |
SentinelFeature |
getSentinelFeature(java.lang.String name) |
void |
initialise(SentinelPlatformConfigurationReader sentinelConfigurationReader,
SentinelFeatureRegisterImpl featureRegisterImpl,
Facilities facilities,
java.util.Map<java.lang.String,java.lang.Object> providers,
SentinelFeatureStatsAccess statsAccess,
AddressListCollection addressListCollection,
com.opencloud.rhino.facilities.childrelations.ChildRelationFacility childRelationFacility,
SentinelFeatureSbbSupport featureSbbSupport,
com.opencloud.sentinel.feature.spi.init.SentinelTracerSupport sentinelTracerSupport,
com.opencloud.sentinel.feature.spi.init.SentinelFrontEnd sentinelFrontEnd,
MapperLibrary<?> mapperLibrary,
MapperFacilities mapperFacilities)
Initialise a feature factory with additional dependencies needed
|
java.lang.String |
toString() |
public FeatureFactoryImpl(java.lang.String factoryName, FeatureCollection featureCollection, FeatureEndpointType caller, com.opencloud.sentinel.common.SentinelExtensionsCMPFieldsAccess cmpAccess)
factoryName
- name of the factoryfeatureCollection
- the collection of features in the factorycaller
- the user of the factorycmpAccess
- access to CMP state for featurespublic void initialise(SentinelPlatformConfigurationReader sentinelConfigurationReader, SentinelFeatureRegisterImpl featureRegisterImpl, Facilities facilities, java.util.Map<java.lang.String,java.lang.Object> providers, SentinelFeatureStatsAccess statsAccess, AddressListCollection addressListCollection, com.opencloud.rhino.facilities.childrelations.ChildRelationFacility childRelationFacility, SentinelFeatureSbbSupport featureSbbSupport, com.opencloud.sentinel.feature.spi.init.SentinelTracerSupport sentinelTracerSupport, com.opencloud.sentinel.feature.spi.init.SentinelFrontEnd sentinelFrontEnd, MapperLibrary<?> mapperLibrary, MapperFacilities mapperFacilities)
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 usepublic java.lang.String getFactoryName()
public SentinelFeature getSentinelFeature(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © OpenCloud. All Rights Reserved.