Interface PrefixHandler
@ProviderType
public interface PrefixHandler
Represents a prefix for the input scope. This abstraction allows the
framework to adapt the applications to different scope naming strategies.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PrefixHandlerAPrefixHandlerthat keeps the input unchanged. -
Method Summary
Modifier and TypeMethodDescriptionAdds the prefix to a given input.default PrefixHandlerappend(PrefixHandler prefixHandler) A newPrefixHandlertaking into account the givenPrefixHandler
-
Field Details
-
PASS_THROUGH_PREFIX_HANDLER
APrefixHandlerthat keeps the input unchanged.
-
-
Method Details
-
addPrefix
Adds the prefix to a given input.- Parameters:
input- String to be prefixed.- Returns:
- a new String with the prefix.
-
append
A newPrefixHandlertaking into account the givenPrefixHandler- Parameters:
prefixHandler- the prefix handler to append.- Returns:
- a new prefix handler combining both prefix handlers.
-