@@ -59,7 +59,11 @@ class FrontendDependenciesScannerFactory {
59
59
* checks {@code WebComponentExporter} classes for
60
60
* dependencies if {@code true}, doesn't check otherwise
61
61
* @return a scanner implementation strategy
62
+ * @deprecated Use
63
+ * {@link FrontendDependenciesScannerFactory#createScanner(boolean, ClassFinder, boolean, FeatureFlags, boolean)}
64
+ * instead.
62
65
*/
66
+ @ Deprecated
63
67
public FrontendDependenciesScanner createScanner (
64
68
boolean allDependenciesScan , ClassFinder finder ,
65
69
boolean generateEmbeddableWebComponents ) {
@@ -84,7 +88,11 @@ public FrontendDependenciesScanner createScanner(
84
88
* available feature flags and their status
85
89
* @return a scanner implementation strategy
86
90
*
91
+ * @deprecated Use
92
+ * {@link FrontendDependenciesScannerFactory#createScanner(boolean, ClassFinder, boolean, FeatureFlags, boolean)}
93
+ * instead.
87
94
*/
95
+ @ Deprecated
88
96
public FrontendDependenciesScanner createScanner (
89
97
boolean allDependenciesScan , ClassFinder finder ,
90
98
boolean generateEmbeddableWebComponents ,
@@ -93,6 +101,25 @@ public FrontendDependenciesScanner createScanner(
93
101
generateEmbeddableWebComponents , featureFlags , true );
94
102
}
95
103
104
+ /**
105
+ * Produces scanner implementation based on {@code allDependenciesScan}
106
+ * value.
107
+ * <p>
108
+ *
109
+ * @param allDependenciesScan
110
+ * if {@code true} then full classpath scanning strategy is
111
+ * used, otherwise byte scanning strategy is produced
112
+ * @param finder
113
+ * a class finder
114
+ * @param generateEmbeddableWebComponents
115
+ * checks {@code WebComponentExporter} classes for
116
+ * dependencies if {@code true}, doesn't check otherwise
117
+ * @param featureFlags
118
+ * available feature flags and their status
119
+ * @param reactEnabled
120
+ * {@code true} if react is enabled, {@code true otherwise}
121
+ * @return a scanner implementation strategy
122
+ */
96
123
public FrontendDependenciesScanner createScanner (
97
124
boolean allDependenciesScan , ClassFinder finder ,
98
125
boolean generateEmbeddableWebComponents ,
@@ -109,6 +136,17 @@ public FrontendDependenciesScanner createScanner(
109
136
}
110
137
}
111
138
139
+ /**
140
+ * Produces scanner implementation based on the given Options object.
141
+ *
142
+ * @param options
143
+ * Options to build the scanner from
144
+ * @return a scanner implementation strategy
145
+ * @deprecated Use
146
+ * {@link FrontendDependenciesScannerFactory#createScanner(boolean, ClassFinder, boolean, FeatureFlags, boolean)}
147
+ * instead.
148
+ */
149
+ @ Deprecated
112
150
public FrontendDependenciesScanner createScanner (Options options ) {
113
151
boolean reactEnabled = options .isReactEnabled () && FrontendUtils
114
152
.isReactRouterRequired (options .getFrontendDirectory ());
0 commit comments