This is an automated email from the ASF dual-hosted git repository.
jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git
The following commit(s) were added to refs/heads/master by this push:
new cfc1c1c272 Marshall module improvements
cfc1c1c272 is described below
commit cfc1c1c272736b0a58a3838fd69ca033a71c51a1
Author: James Bognar <[email protected]>
AuthorDate: Wed Dec 10 11:01:56 2025 -0500
Marshall module improvements
---
.../main/java/org/apache/juneau/BeanFilter.java | 44 ++++++++++++----------
1 file changed, 25 insertions(+), 19 deletions(-)
diff --git
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/BeanFilter.java
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/BeanFilter.java
index 56d6c7d7a2..c5abe9ed18 100644
---
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/BeanFilter.java
+++
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/BeanFilter.java
@@ -30,7 +30,7 @@ import org.apache.juneau.cp.*;
import org.apache.juneau.swap.*;
/**
- * Parent class for all bean filters.
+ * TODO
*
* <p>
* Bean filters are used to control aspects of how beans are handled during
serialization and parsing.
@@ -38,23 +38,23 @@ import org.apache.juneau.swap.*;
* <p>
* Bean filters are created by {@link Builder} which is the programmatic
equivalent to the {@link Bean @Bean}
* annotation.
- *
*/
+@SuppressWarnings("rawtypes")
public class BeanFilter {
+
/**
* Builder class.
*/
- public static class Builder {
-
- ClassInfoTyped<?> beanClass;
- String typeName, example;
- Set<String> properties = set(), excludeProperties = set(),
readOnlyProperties = set(), writeOnlyProperties = set();
- Class<?> implClass, interfaceClass, stopClass;
- boolean sortProperties, fluentSetters;
- BeanCreator<PropertyNamer> propertyNamer =
BeanCreator.of(PropertyNamer.class);
- List<Class<?>> dictionary;
- @SuppressWarnings("rawtypes")
- BeanCreator<BeanInterceptor> interceptor =
BeanCreator.of(BeanInterceptor.class);
+ protected static class Builder {
+
+ private ClassInfoTyped<?> beanClass;
+ private String typeName, example;
+ private Set<String> properties = set(), excludeProperties =
set(), readOnlyProperties = set(), writeOnlyProperties = set();
+ private Class<?> implClass, interfaceClass, stopClass;
+ private boolean sortProperties, fluentSetters;
+ private BeanCreator<PropertyNamer> propertyNamer =
BeanCreator.of(PropertyNamer.class);
+ private List<Class<?>> dictionary;
+ private BeanCreator<BeanInterceptor> interceptor =
BeanCreator.of(BeanInterceptor.class);
/**
* Constructor.
@@ -701,14 +701,20 @@ public class BeanFilter {
}
private final ClassInfoTyped<?> beanClass;
- private final Set<String> properties, excludeProperties,
readOnlyProperties, writeOnlyProperties;
- private final PropertyNamer propertyNamer;
- private final Class<?> implClass, interfaceClass, stopClass;
- private final boolean sortProperties, fluentSetters;
- private final String typeName, example;
private final List<Class<?>> beanDictionary;
- @SuppressWarnings("rawtypes")
+ private final String example;
+ private final Set<String> excludeProperties;
+ private final boolean fluentSetters;
+ private final Class<?> implClass;
+ private final Class<?> interfaceClass;
private final BeanInterceptor interceptor;
+ private final Set<String> properties;
+ private final PropertyNamer propertyNamer;
+ private final Set<String> readOnlyProperties;
+ private final boolean sortProperties;
+ private final Class<?> stopClass;
+ private final String typeName;
+ private final Set<String> writeOnlyProperties;
/**
* Constructor.