Skip to content

Commit 3692353

Browse files
authored
Road grading; uptakes microbean-bean 0.0.23 and microbean-construct 0.0.24 (#7)
Signed-off-by: Laird Nelson <ljnelson@gmail.com>
1 parent 07d9851 commit 3692353

File tree

7 files changed

+21
-33
lines changed

7 files changed

+21
-33
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
[![Maven Central](https://img.shields.io/maven-central/v/org.microbean/microbean-proxy.svg?label=Maven%20Central)](https://search.maven.org/artifact/org.microbean/microbean-proxy)
44

5+
![0% AI](https://img.shields.io/badge/%F0%9F%A4%96_AI-0%25_%F0%9F%8C%BC-brightgreen)
6+
57
The microBean™ Proxy project provides classes and interfaces assisting with implementing proxy classes.
68

79
# Status
@@ -28,7 +30,7 @@ dependency:
2830
<groupId>org.microbean</groupId>
2931
<artifactId>microbean-proxy</artifactId>
3032
<!-- Always check https://central.sonatype.com/artifact/org.microbean/microbean-proxy for up-to-date available versions. -->
31-
<version>0.0.5</version>
33+
<version>0.0.6</version>
3234
</dependency>
3335
```
3436

pom.xml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
<!-- maven-javadoc-plugin properties -->
8181
<bottom><![CDATA[Copyright &copy; ${project.inceptionYear}&ndash;{currentYear}, <a href="${project.organization.url}" target="_top">${project.organization.name}</a>. All rights reserved.]]></bottom>
8282
<doctitle>&lt;a href="${project.url}" target="_top"&gt;&lt;span style="font-family:Lobster, cursive;"&gt;µb&lt;/span&gt; ${project.artifactId}&lt;/a&gt; ${project.version}</doctitle>
83-
<links>https://microbean.github.io/microbean-attributes/apidocs/,https://microbean.github.io/microbean-bean/apidocs/,https://microbean.github.io/microbean-construct/apidocs/</links>
83+
<links>https://microbean.github.io/microbean-bean/apidocs/,https://microbean.github.io/microbean-construct/apidocs/</links>
8484
<sourcetab>2</sourcetab>
8585

8686
<!-- maven-release-plugin properties -->
@@ -127,35 +127,23 @@
127127

128128
<!-- Normal dependencies. -->
129129

130-
<dependency>
131-
<groupId>org.microbean</groupId>
132-
<artifactId>microbean-attributes</artifactId>
133-
<version>0.0.5</version>
134-
</dependency>
135-
136130
<dependency>
137131
<groupId>org.microbean</groupId>
138132
<artifactId>microbean-bean</artifactId>
139-
<version>0.0.22</version>
133+
<version>0.0.23</version>
140134
</dependency>
141135

142136
<dependency>
143137
<groupId>org.microbean</groupId>
144138
<artifactId>microbean-construct</artifactId>
145-
<version>0.0.18</version>
139+
<version>0.0.24</version>
146140
</dependency>
147141

148142
</dependencies>
149143
</dependencyManagement>
150144

151145
<dependencies>
152146

153-
<dependency>
154-
<groupId>org.microbean</groupId>
155-
<artifactId>microbean-attributes</artifactId>
156-
<scope>compile</scope>
157-
</dependency>
158-
159147
<dependency>
160148
<groupId>org.microbean</groupId>
161149
<artifactId>microbean-bean</artifactId>

src/main/java/module-info.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*-
22
*
3-
* Copyright © 2025 microBean™.
3+
* Copyright © 2025–2026 microBean™.
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
66
* the License. You may obtain a copy of the License at
@@ -21,7 +21,6 @@
2121

2222
exports org.microbean.proxy;
2323

24-
requires transitive org.microbean.attributes;
2524
requires transitive org.microbean.bean;
2625
requires transitive org.microbean.construct;
2726

src/main/java/org/microbean/proxy/AbstractProxier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*-
22
*
3-
* Copyright © 2025 microBean™.
3+
* Copyright © 2025–2026 microBean™.
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
66
* the License. You may obtain a copy of the License at

src/main/java/org/microbean/proxy/AbstractReflectiveProxier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*-
22
*
3-
* Copyright © 2025 microBean™.
3+
* Copyright © 2025–2026 microBean™.
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
66
* the License. You may obtain a copy of the License at

src/main/java/org/microbean/proxy/AbstractToolkitProxier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*-
22
*
3-
* Copyright © 2025 microBean™.
3+
* Copyright © 2025–2026 microBean™.
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
66
* the License. You may obtain a copy of the License at

src/main/java/org/microbean/proxy/ProxySpecification.java

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*-
22
*
3-
* Copyright © 2025 microBean™.
3+
* Copyright © 2025–2026 microBean™.
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
66
* the License. You may obtain a copy of the License at
@@ -15,13 +15,12 @@
1515

1616
import java.util.List;
1717

18+
import javax.lang.model.element.AnnotationMirror;
1819
import javax.lang.model.element.TypeElement;
1920

2021
import javax.lang.model.type.DeclaredType;
2122
import javax.lang.model.type.TypeMirror;
2223

23-
import org.microbean.attributes.Attributes;
24-
2524
import org.microbean.bean.BeanTypeList;
2625
import org.microbean.bean.Id;
2726

@@ -34,7 +33,7 @@
3433
import static org.microbean.bean.BeanTypes.proxiableBeanType;
3534

3635
/**
37-
* Information about a proxy.
36+
* Information about what requirements a {@link Proxy} must fulfil.
3837
*
3938
* @author <a href="https://about.me/lairdnelson" target="_top">Laird Nelson</a>
4039
*/
@@ -53,7 +52,7 @@ public class ProxySpecification {
5352

5453
private final List<TypeMirror> interfaces;
5554

56-
private final List<Attributes> attributes;
55+
private final List<AnnotationMirror> annotations;
5756

5857
private final String name;
5958

@@ -79,7 +78,7 @@ public class ProxySpecification {
7978
public ProxySpecification(final Domain domain, final Id id) {
8079
super();
8180
this.domain = domain; // not nullable
82-
this.attributes = id.attributes();
81+
this.annotations = id.annotations();
8382
final BeanTypeList types = id.types();
8483
final TypeMirror t = types.get(0); // putative superclass
8584
if (t.getKind() != DECLARED || domain.javaLangObject(t) && types.size() == 1) {
@@ -125,7 +124,7 @@ public boolean equals(final Object other) {
125124
return false;
126125
}
127126
}
128-
return this.attributes().equals(her.attributes());
127+
return this.annotations().equals(her.annotations());
129128
} else {
130129
return false;
131130
}
@@ -137,17 +136,17 @@ public int hashCode() {
137136
hashCode = 17 * hashCode + this.domain.hashCode();
138137
hashCode = 17 * hashCode + this.superclass().hashCode();
139138
hashCode = 17 * hashCode + this.interfaces().hashCode();
140-
hashCode = 17 * hashCode + this.attributes().hashCode();
139+
hashCode = 17 * hashCode + this.annotations().hashCode();
141140
return hashCode;
142141
}
143142

144143
/**
145-
* Returns an immutable {@link List} of {@link Attributes} describing this {@link ProxySpecification}.
144+
* Returns an immutable {@link List} of {@link AnnotationMirror}s describing this {@link ProxySpecification}.
146145
*
147-
* @return a non-{@code null}, immutable {@link List} of {@link Attributes} instances
146+
* @return a non-{@code null}, immutable {@link List} of {@link AnnotationMirror} instances
148147
*/
149-
public final List<Attributes> attributes() {
150-
return this.attributes;
148+
public final List<AnnotationMirror> annotations() {
149+
return this.annotations;
151150
}
152151

153152
/**

0 commit comments

Comments
 (0)