public interface CoreFactory
create
methods on the target interfaces.
The implementation of the factory is loaded via ExtendedServiceLoader
and is therefore pluggable.Modifier and Type | Field and Description |
---|---|
static CoreFactory |
INSTANCE
The instance loaded via
ExtendedServiceLoader . |
static final CoreFactory INSTANCE
ExtendedServiceLoader
.EventContext createEventContext(String event, String entityName)
EventContext
.
Application code should use EventContext.create(String, String)
instead.event
- the name of the evententityName
- the name of the entityEventContext
Service createService(String name)
Service
.
Application code should use EventContext.create(String, String)
instead.name
- the name of the serviceService
Service createService(String name, Service delegator)
Service
with a given delegator Service
.
This method is intended to be used only by ServiceDelegator
.CdsRuntimeConfigurer createCdsRuntimeConfigurer(PropertiesProvider propertiesProvider)
CdsRuntimeConfigurer
with the given properties.
Application code should use CdsRuntimeConfigurer.create()
or CdsRuntimeConfigurer.create(PropertiesProvider)
instead.propertiesProvider
- the PropertiesProvider
,
may be null
, which means a simple PropertiesProvider
providing default CdsProperties
is usedCdsRuntimeConfigurer
RequestContextAccessor createRequestContextAccessor()
RequestContextAccessor
.
This method is intended to be used only by RequestContext
.RequestContextAccessor
ChangeSetContextAccessor createChangeSetContextAccessor()
ChangeSetContextAccessor
.
This method is intended to be used only by ChangeSetContext
.ChangeSetContextAccessor
ChangeSetContextSPI createChangeSetContextSPI()
ChangeSetContextSPI
.
Application code should use ChangeSetContextSPI.open()
instead.ChangeSetContextSPI
ModifiableParameterInfo createParameterInfo(ParameterInfo parameterInfo)
ModifiableParameterInfo
based on the passed ParameterInfo
.
If parameterInfo
is null
, a ModifiableParameterInfo
based on
default values of a clear ParameterInfo
is returned.
Application code should use ParameterInfo.create()
or ParameterInfo.copy()
instead.parameterInfo
- The ParameterInfo
as basis.ModifiableParameterInfo
instance.ModifiableUserInfo createUserInfo(UserInfo userInfo)
ModifiableUserInfo
based on the passed UserInfo
.
If userInfo
is null
, a ModifiableUserInfo
based on
default values of a clear UserInfo
is returned.
Application code should use UserInfo.create()
or UserInfo.copy()
instead.userInfo
- The UserInfo
as basis.ModifiableUserInfo
instance.FeatureTogglesInfo createFeatureTogglesInfo(List<FeatureToggle> featureToggles)
FeatureTogglesInfo
object.
Application code should use FeatureTogglesInfo.create(List)
instead.featureToggles
- A List
of feature togglesFeatureTogglesInfo
object containing all provided feature toggles in the streamFeatureTogglesInfo createFeatureTogglesInfo(Map<String,Boolean> featureToggles)
FeatureTogglesInfo
object.
Application code should use FeatureTogglesInfo.create(Map)
instead.featureToggles
- A Map
where the key is the feature name and the value indicates if the feature is enable or notFeatureTogglesInfo
object containing the feature toggles created from the map entriesServiceExceptionUtils createServiceExceptionUtils()
ServiceExceptionUtils
.
This method is intended to be used only by ServiceException
.ServiceExceptionUtils
Message createMessage(Message.Severity severity, String text)
Message
object.
Application code should use Message.create(Severity, String)
instead.severity
- the Message.Severity
of the Message
text
- the final text of the messageMessage
Message createMessage(String text, ServiceException exception)
Message
object.
Application code should use Message.create(String, ServiceException)
instead.text
- the final text of the messageexception
- the ServiceException
to copy optional arguments fromMessage
Message createMessage(Message.Severity severity, String text, Message message)
Message
object.
Application code should use Message.create(Severity, String, Message)
instead.severity
- the Message.Severity
of the Message
text
- the final text of the messagemessage
- the Message
Message
Copyright © 2023. All rights reserved.