io.atlasmap.core.DefaultAtlasFieldActionService.class Maven / Gradle / Ivy
Go to download
A single aggregated bundle which contains all AtlasMap library artifacts including modules.
???? 4?
c
d
e
'fg
f
hi
f
j
k
lm
no
p
q
'r
?s
t
uv
uwxyz{ ?|
}~
}
? ??z??
??? ?
?? ?
????? ??
?
?????
,f?
,?
??
,?
??
? ??
??
???
8f
??
8?
??
8? 6?
8? 6?
8? 6?
8? 6? ?? ??
8? ?? ???
???
??
8?
8??
L???
8?
??
?
8???
W????
8????
^??
???
,??
??
????
??
}?
??
?
??
???
??
?? `? ?? ?? ??
??
??
????
y??
|? ???? ??
?? ??? ??
??? ??
? ?? 3?
??
??? ???
n??
??
?f
?
?f
?
?
??
??
?
?
?
??
?
?
?
'??
?x ?
? !"!#
$ ?%&
?'
?()*
??
?+,
8'
8- ?.
/
?0 ?12 ?3
45 ??
86
??7 ? 89
:
?;
<=>? ? ?@A
?B ?;
?C
DEF
?G
?H
?I
1 ?J
K
L
M
?NO
dP
?Q RS
TU
VW
?X
??
?Y
?QZ
?[\
?f
V]
?^
?_
?
?Y
?` cd gh
ij
ik c g
?n
opqr???
8s
t
u?v
w ?xy ?z ?{ ?| ?} ?~ ? ?? ??
??
??
??
?
??????????
?????????????? InnerClasses ActionProcessor LOG Lorg/slf4j/Logger; instance 1Lio/atlasmap/core/DefaultAtlasFieldActionService; listClasses Ljava/util/Set; Signature #Ljava/util/Set;
mapClasses actionProcessors Ljava/util/List; SLjava/util/List; actionProcessorsLock *Ljava/util/concurrent/locks/ReadWriteLock; conversionService (Lio/atlasmap/spi/AtlasConversionService; actionResolver Lio/atlasmap/v2/ActionResolver; +(Lio/atlasmap/spi/AtlasConversionService;)V Code LineNumberTable LocalVariableTable this getInstance 3()Lio/atlasmap/core/DefaultAtlasFieldActionService;
StackMapTable?? init ()V javaType C(Ljava/lang/reflect/Type;)Lcom/fasterxml/jackson/databind/JavaType; type Ljava/lang/reflect/Type; (Ljava/lang/ClassLoader;)V classLoader Ljava/lang/ClassLoader; writeLock !Ljava/util/concurrent/locks/Lock;m?? loadFieldActions ()Ljava/util/List; U()Ljava/util/List; )(Ljava/lang/ClassLoader;)Ljava/util/List; fieldActionServiceLoader Ljava/util/ServiceLoader; compat answer LocalVariableTypeTable =Ljava/util/ServiceLoader; =Ljava/util/ServiceLoader;? l(Ljava/lang/ClassLoader;)Ljava/util/List; createActionProcessor 5(Lio/atlasmap/spi/AtlasFieldAction;Ljava/util/List;)V det ALio/atlasmap/core/DefaultAtlasFieldActionService$ActionProcessor; method Ljava/lang/reflect/Method; atlasFieldAction "Lio/atlasmap/spi/AtlasFieldAction; clazz Ljava/lang/Class; methods [Ljava/lang/reflect/Method; Ljava/lang/Class<*>;??z?, x(Lio/atlasmap/spi/AtlasFieldAction;Ljava/util/List;)V createDetailFromFieldActionInfo n(Ljava/lang/Class;Ljava/lang/reflect/Method;)Lio/atlasmap/core/DefaultAtlasFieldActionService$ActionProcessor; actionClazz e Ljava/lang/Exception; "Ljava/lang/ClassNotFoundException;
annotation &Lio/atlasmap/spi/AtlasFieldActionInfo; Lio/atlasmap/v2/ActionDetail; sourceCollection Lio/atlasmap/v2/CollectionType; targetCollection finalActionClazz +Ljava/lang/Class<+Lio/atlasmap/v2/Action;>;????? q(Ljava/lang/Class<*>;Ljava/lang/reflect/Method;)Lio/atlasmap/core/DefaultAtlasFieldActionService$ActionProcessor; createDetailFromProcessor sourceClass Ljava/lang/Throwable; &Lio/atlasmap/spi/AtlasActionProcessor; targetClass name Ljava/lang/String; genericParameterTypes [Ljava/lang/reflect/Type; o Ljava/lang/Object; object?A? convertItems $(Ljava/util/List;Ljava/lang/Class;)V item i I
sourceList itemClass $Ljava/util/List;
Exceptions? ;(Ljava/util/List;Ljava/lang/Class<*>;)V toFieldCollectionType 2(Ljava/lang/Class;)Lio/atlasmap/v2/CollectionType; 5(Ljava/lang/Class<*>;)Lio/atlasmap/v2/CollectionType; toFieldType E(Ljava/lang/Class;Ljava/lang/reflect/Type;)Lio/atlasmap/v2/FieldType; t
parameterType H(Ljava/lang/Class<*>;Ljava/lang/reflect/Type;)Lio/atlasmap/v2/FieldType; detectFieldActionParameters 4(Ljava/lang/Class;)Lio/atlasmap/v2/ActionParameters; m methodParam Ljava/lang/reflect/Parameter; actionParam Lio/atlasmap/v2/ActionParameter; params !Lio/atlasmap/v2/ActionParameters; ?? 7(Ljava/lang/Class<*>;)Lio/atlasmap/v2/ActionParameters; listActionDetails readLock 1()Ljava/util/List; getActionDetailByActionName 1(Ljava/lang/String;)Lio/atlasmap/v2/ActionDetail; actionDetail
actionName?
Deprecated RuntimeVisibleAnnotations Ljava/lang/Deprecated; findActionDetail P(Lio/atlasmap/v2/Action;Lio/atlasmap/v2/FieldType;)Lio/atlasmap/v2/ActionDetail; action Lio/atlasmap/v2/Action;
sourceType Lio/atlasmap/v2/FieldType; processor findActionProcessor t(Lio/atlasmap/v2/Action;Lio/atlasmap/v2/FieldType;)Lio/atlasmap/core/DefaultAtlasFieldActionService$ActionProcessor; detail customAction Lio/atlasmap/v2/CustomAction; matches& g(Ljava/lang/String;Ljava/lang/Object;)Lio/atlasmap/core/DefaultAtlasFieldActionService$ActionProcessor; value valueType
uppercaseName
processors2 findBestActionProcessor m(Ljava/util/List;Lio/atlasmap/v2/FieldType;)Lio/atlasmap/core/DefaultAtlasFieldActionService$ActionProcessor; ?(Ljava/util/List;Lio/atlasmap/v2/FieldType;)Lio/atlasmap/core/DefaultAtlasFieldActionService$ActionProcessor; flattenList &(Ljava/lang/Object;)Ljava/lang/Object; argument extractedValues buildAndProcessAction t(Lio/atlasmap/core/DefaultAtlasFieldActionService$ActionProcessor;Ljava/util/Map;Ljava/util/List;)Ljava/lang/Object;
fieldGroup Lio/atlasmap/v2/FieldGroup; values Lio/atlasmap/v2/Field; setter property Entry Ljava/util/Map$Entry; actionProcessor actionParameters Ljava/util/Map; fields flattenedValues sourceObject ;Ljava/util/Map$Entry; 5Ljava/util/Map; (Ljava/util/List;8?? ?(Lio/atlasmap/core/DefaultAtlasFieldActionService$ActionProcessor;Ljava/util/Map;Ljava/util/List;)Ljava/lang/Object; processActions T(Lio/atlasmap/spi/AtlasInternalSession;Lio/atlasmap/v2/Field;)Lio/atlasmap/v2/Field; subField subValue newField session &Lio/atlasmap/spi/AtlasInternalSession; field actions Ljava/util/ArrayList;
targetType tmpSourceObject currentType .Ljava/util/ArrayList;g9 determineFieldType ,(Ljava/util/List;)Lio/atlasmap/v2/FieldType; Ljava/util/Optional; (Ljava/util/Optional;? @(Ljava/util/List;)Lio/atlasmap/v2/FieldType; #extractFlatListValuesFromFieldGroup L(Lio/atlasmap/api/AtlasSession;Lio/atlasmap/v2/FieldGroup;Ljava/util/List;)V index Ljava/lang/Integer; Lio/atlasmap/api/AtlasSession;?r `(Lio/atlasmap/api/AtlasSession;Lio/atlasmap/v2/FieldGroup;Ljava/util/List;)V %extractNestedListValuesFromFieldGroup .(Lio/atlasmap/v2/FieldGroup;Ljava/util/List;)V subValues B(Lio/atlasmap/v2/FieldGroup;Ljava/util/List;)V hasExpressionAction (Ljava/util/List;)Z )Ljava/util/List; ,(Ljava/util/List;)Z findLastIndexField 3(Lio/atlasmap/v2/FieldGroup;)Lio/atlasmap/v2/Field;
subFieldIndex lastSubFieldIndex lastSubField
processAction ?(Lio/atlasmap/v2/Action;Lio/atlasmap/core/DefaultAtlasFieldActionService$ActionProcessor;Lio/atlasmap/v2/FieldType;Ljava/lang/Object;)Ljava/lang/Object; multiplicity Lio/atlasmap/v2/Multiplicity;? "processActionForEachCollectionItem k(Lio/atlasmap/v2/Action;Lio/atlasmap/core/DefaultAtlasFieldActionService$ActionProcessor;Ljava/util/List;)V
collection (Lio/atlasmap/v2/Action;Lio/atlasmap/core/DefaultAtlasFieldActionService$ActionProcessor;Ljava/util/List;)V convertCollectionValues -(Ljava/util/List;Lio/atlasmap/v2/FieldType;)V subType A(Ljava/util/List;Lio/atlasmap/v2/FieldType;)V isAssignableFieldType 7(Lio/atlasmap/v2/FieldType;Lio/atlasmap/v2/FieldType;)Z expected actual getConversionService *()Lio/atlasmap/spi/AtlasConversionService; camelize &(Ljava/lang/String;)Ljava/lang/String; parameter c [C lambda$determineFieldType$6 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; a b lambda$determineFieldType$5 (Ljava/lang/Object;)Z v lambda$determineFieldType$4 lambda$determineFieldType$3 lambda$listActionDetails$2 `(Lio/atlasmap/core/DefaultAtlasFieldActionService$ActionProcessor;)Lio/atlasmap/v2/ActionDetail; x lambda$loadFieldActions$1 5(Ljava/util/List;Lio/atlasmap/api/AtlasFieldAction;)V "Lio/atlasmap/api/AtlasFieldAction; lambda$loadFieldActions$0 5(Ljava/util/List;Lio/atlasmap/spi/AtlasFieldAction;)V
access$000 [(Lio/atlasmap/core/DefaultAtlasFieldActionService;)Lio/atlasmap/spi/AtlasConversionService; x0
access$100 c(Lio/atlasmap/core/DefaultAtlasFieldActionService;Ljava/lang/Class;)Lio/atlasmap/v2/CollectionType; x1
access$200 U(Lio/atlasmap/core/DefaultAtlasFieldActionService;Ljava/util/List;Ljava/lang/Class;)V x2
SourceFile #DefaultAtlasFieldActionService.java????DEHT java/util/ArrayList?@ 1java/util/concurrent/locks/ReentrantReadWriteLockBCFG89 /io/atlasmap/core/DefaultAtlasFieldActionService?N?HIST????SY????V?\???T?T?N?S?ad???T io/atlasmap/spi/AtlasFieldAction??? io/atlasmap/api/AtlasFieldAction BootstrapMethods??????????67??? Loaded %s Field Actions java/lang/Object???????? java/lang/StringBuilder Loading FieldAction class: ???????????K?? $io/atlasmap/spi/AtlasFieldActionInfo??? io/atlasmap/v2/ActionDetail??????????????
??????????1???1?1 io.atlasmap.v2.?? java/lang/Exception??????? .Could not get json schema for action=%s msg=%s??????????? java/lang/ClassNotFoundException 5Error detecting parameters for field action=%s msg=%s? Loaded FieldAction: ? 1io/atlasmap/core/DefaultAtlasFieldActionService$1H $io/atlasmap/spi/AtlasActionProcessor? FInvalid @AtlasActionProcessor method. Expected at least 1 parameter: ? io/atlasmap/v2/Action GInvalid @AtlasActionProcessor method. 1st parameter does not subclass :
?
?? io.atlasmap.actionsK??11? java/lang/Throwable 3Error creating object instance for action=%s msg=%s 1io/atlasmap/core/DefaultAtlasFieldActionService$2H !"?#$?%? java/util/Collection&?:;'(K)?>;*?+,-?.? #java/lang/reflect/ParameterizedType/ java/lang/Class01 set23 io/atlasmap/v2/ActionParameters45 io/atlasmap/v2/ActionParameter6?78AB?@?9?:?;?<?=>?@AbBC >Failed to populate possible enum parameter values, ignoring...??Db??EF?GPHIJKLMNOPQ java/util/List?bRS?T?U??VW io/atlasmap/v2/CustomActionX?Y? io/atlasmap/api/AtlasException IThe class name and method name must be specified for custom FieldAction: H? ?io/atlasmap/core/DefaultAtlasFieldActionService$ActionProcessorZ?[???\?]? io/atlasmap/v2/FieldType^?_`ab? java/lang/Iterable io/atlasmap/v2/Field io/atlasmap/v2/FieldGroup!"c?de java/util/Map$Entryf java/lang/String7gZ@./ "java/lang/IllegalArgumentException #The action '%s' cannot be processedH?hij?k?%&)*l? :Couldn't find metadata for a FieldAction '%s', ignoring...m?n?opqrstuvwx?yz []{? io/atlasmap/v2/SimpleField|}~???bK?????G?H???????????? kUsing only the first element of the collection since a single value is expected in a multi-field selection. io/atlasmap/v2/Expression java/lang/Integer??78;<!?34?? [Ljava/lang/Object;?>???????????????????H?op??? java/util/HashSet java.util.List java.util.ArrayList java.util.LinkedList java.util.Vector java.util.Stack java.util.AbstractList java.util.AbstractSequentialListH?
java.util.Map java.util.HashMap java.util.TreeMap java.util.Hashtable java.util.IdentityHashMap java.util.LinkedHashMap java.util.SortedMap java.util.WeakHashMap java.util.Properties &java.util.concurrent.ConcurrentHashMap "java.util.concurrent.ConcurrentMap 'io/atlasmap/spi/AtlasFieldActionService 1io/atlasmap/core/DefaultAtlasFieldActionService$3 java/lang/ClassLoader java/util/concurrent/locks/Lock java/util/ServiceLoader java/lang/reflect/Method io/atlasmap/v2/CollectionType (io/atlasmap/api/AtlasConversionException [Ljava/lang/reflect/Parameter; java/lang/reflect/Parameter java/util/Iterator
java/util/Map java/util/Optional io/atlasmap/api/AtlasSession io/atlasmap/v2/Multiplicity .io/atlasmap/core/DefaultAtlasConversionService 2()Lio/atlasmap/core/DefaultAtlasConversionService; getClass ()Ljava/lang/Class; getClassLoader ()Ljava/lang/ClassLoader; /com/fasterxml/jackson/databind/type/TypeFactory defaultInstance 3()Lcom/fasterxml/jackson/databind/type/TypeFactory;
constructType (java/util/concurrent/locks/ReadWriteLock #()Ljava/util/concurrent/locks/Lock; lock clear io/atlasmap/v2/ActionResolver !()Lio/atlasmap/v2/ActionResolver; 8(Ljava/lang/ClassLoader;)Lio/atlasmap/v2/ActionResolver; addAll (Ljava/util/Collection;)Z unlock load C(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/ServiceLoader;
?? (Ljava/lang/Object;)V
? %(Lio/atlasmap/spi/AtlasFieldAction;)V accept `(Lio/atlasmap/core/DefaultAtlasFieldActionService;Ljava/util/List;)Ljava/util/function/Consumer; forEach (Ljava/util/function/Consumer;)V
? %(Lio/atlasmap/api/AtlasFieldAction;)V org/slf4j/Logger isDebugEnabled ()Z size ()I valueOf (I)Ljava/lang/Integer; format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; debug (Ljava/lang/String;)V append -(Ljava/lang/String;)Ljava/lang/StringBuilder; getCanonicalName ()Ljava/lang/String; toString
getMethods ()[Ljava/lang/reflect/Method; add
getAnnotation 4(Ljava/lang/Class;)Ljava/lang/annotation/Annotation; getName setClassName setMethod setName ()Lio/atlasmap/v2/FieldType;
setSourceType (Lio/atlasmap/v2/FieldType;)V
setTargetType sourceCollectionType !()Lio/atlasmap/v2/CollectionType; NONE MANY_TO_ONE setMultiplicity (Lio/atlasmap/v2/Multiplicity;)V ONE_TO_MANY
ONE_TO_ONE forName %(Ljava/lang/String;)Ljava/lang/Class; java/lang/Boolean (Z)Ljava/lang/Boolean; setCustom (Ljava/lang/Boolean;)V setActionSchema (Ljava/lang/Class;)V
getMessage error *(Ljava/lang/String;Ljava/lang/Throwable;)V isCustom ()Ljava/lang/Boolean; booleanValue
setParameters $(Lio/atlasmap/v2/ActionParameters;)V isTraceEnabled trace ?(Lio/atlasmap/core/DefaultAtlasFieldActionService;Lio/atlasmap/v2/ActionDetail;Ljava/lang/Class;Ljava/lang/reflect/Method;Ljava/lang/Class;)V getParameterCount -(Ljava/lang/Object;)Ljava/lang/StringBuilder; getParameterTypes ()[Ljava/lang/Class; isAssignableFrom (Ljava/lang/Class;)Z
getReturnType toId %(Ljava/lang/Class;)Ljava/lang/String; getGenericReturnType ()Ljava/lang/reflect/Type;
getPackage ()Ljava/lang/Package; java/lang/Package equals getGenericParameterTypes ()[Ljava/lang/reflect/Type; MANY_TO_MANY ZERO_TO_ONE getModifiers java/lang/reflect/Modifier isStatic (I)Z newInstance ()Ljava/lang/Object; ?(Lio/atlasmap/core/DefaultAtlasFieldActionService;Lio/atlasmap/v2/ActionDetail;Ljava/lang/Class;Ljava/lang/reflect/Method;Ljava/lang/Object;)V get (I)Ljava/lang/Object; &io/atlasmap/spi/AtlasConversionService convertType [(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object; '(ILjava/lang/Object;)Ljava/lang/Object; isArray ARRAY ALL
java/util/Set contains LIST MAP ($SwitchMap$io$atlasmap$v2$CollectionType [I ordinal getComponentType getActualTypeArguments fieldTypeFromClass -(Ljava/lang/Class;)Lio/atlasmap/v2/FieldType;
startsWith (Ljava/lang/String;)Z
getParameters ()[Ljava/lang/reflect/Parameter; length substring (I)Ljava/lang/String; getType setFieldType isEnum STRING getEnumConstants ()[Ljava/lang/Object; getDeclaredMethod @(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; getValues invoke 9(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; getParameter stream ()Ljava/util/stream/Stream;
? apply ()Ljava/util/function/Function; java/util/stream/Stream map 8(Ljava/util/function/Function;)Ljava/util/stream/Stream; java/util/stream/Collectors toList ()Ljava/util/stream/Collector; collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object; iterator ()Ljava/util/Iterator; hasNext next getActionDetail ()Lio/atlasmap/v2/ActionDetail; getClassName
getMethodName getMethod getActionClass toUpperCase isEmpty ANY java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List;
getSourceType getValue entrySet ()Ljava/util/Set; getKey (II)Ljava/lang/String;
getActions ()Ljava/util/ArrayList; getFieldType COMPLEX getDocId getDisplayName getPath io/atlasmap/v2/AuditStatus WARN Lio/atlasmap/v2/AuditStatus; io/atlasmap/core/AtlasUtil addAudit ?(Lio/atlasmap/api/AtlasSession;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lio/atlasmap/v2/AuditStatus;Ljava/lang/String;)V io/atlasmap/v2/AtlasModelFactory createFieldGroupFrom 4(Lio/atlasmap/v2/Field;Z)Lio/atlasmap/v2/FieldGroup; getCollectionType setCollectionType "(Lio/atlasmap/v2/CollectionType;)V setPath copyField 0(Lio/atlasmap/v2/Field;Lio/atlasmap/v2/Field;Z)V setIndex (Ljava/lang/Integer;)V setValue getField
? test ()Ljava/util/function/Predicate; filter 9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
? %()Ljava/util/function/BinaryOperator; reduce 9(Ljava/util/function/BinaryOperator;)Ljava/util/Optional; isPresent
?
? getIndex ()Ljava/lang/Integer; intValue getMultiplicity ()Lio/atlasmap/v2/Multiplicity; Z(Ljava/lang/Object;Lio/atlasmap/v2/FieldType;Lio/atlasmap/v2/FieldType;)Ljava/lang/Object; process =(Lio/atlasmap/v2/Action;Ljava/lang/Object;)Ljava/lang/Object; toArray ANY_DATE DATE TIME DATE_TIME DATE_TIME_TZ DATE_TZ TIME_TZ toCharArray ()[C java/lang/Character toLowerCase (C)C ([C)V org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; (Ljava/util/Collection;)V???UVRSOPNKMGJKFG "java/lang/invoke/LambdaMetafactory metafactory? Lookup ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;? %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles !
' 2 67
89
:; <