diff --git a/README.md b/README.md index 4562ea1..a52b79c 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ [![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) +![0% AI](https://img.shields.io/badge/%F0%9F%A4%96_AI-0%25_%F0%9F%8C%BC-brightgreen) + The microBean™ Proxy project provides classes and interfaces assisting with implementing proxy classes. # Status @@ -28,7 +30,7 @@ dependency: org.microbean microbean-proxy - 0.0.5 + 0.0.6 ``` diff --git a/pom.xml b/pom.xml index 65e19ce..d77dcf4 100644 --- a/pom.xml +++ b/pom.xml @@ -80,7 +80,7 @@ ${project.organization.name}. All rights reserved.]]> <a href="${project.url}" target="_top"><span style="font-family:Lobster, cursive;">µb</span> ${project.artifactId}</a> ${project.version} - https://microbean.github.io/microbean-attributes/apidocs/,https://microbean.github.io/microbean-bean/apidocs/,https://microbean.github.io/microbean-construct/apidocs/ + https://microbean.github.io/microbean-bean/apidocs/,https://microbean.github.io/microbean-construct/apidocs/ 2 @@ -127,22 +127,16 @@ - - org.microbean - microbean-attributes - 0.0.5 - - org.microbean microbean-bean - 0.0.22 + 0.0.23 org.microbean microbean-construct - 0.0.18 + 0.0.24 @@ -150,12 +144,6 @@ - - org.microbean - microbean-attributes - compile - - org.microbean microbean-bean diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java index c5a6494..5d7ab76 100644 --- a/src/main/java/module-info.java +++ b/src/main/java/module-info.java @@ -1,6 +1,6 @@ /* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*- * - * Copyright © 2025 microBean™. + * Copyright © 2025–2026 microBean™. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -21,7 +21,6 @@ exports org.microbean.proxy; - requires transitive org.microbean.attributes; requires transitive org.microbean.bean; requires transitive org.microbean.construct; diff --git a/src/main/java/org/microbean/proxy/AbstractProxier.java b/src/main/java/org/microbean/proxy/AbstractProxier.java index 3fc1b09..358e979 100644 --- a/src/main/java/org/microbean/proxy/AbstractProxier.java +++ b/src/main/java/org/microbean/proxy/AbstractProxier.java @@ -1,6 +1,6 @@ /* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*- * - * Copyright © 2025 microBean™. + * Copyright © 2025–2026 microBean™. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/src/main/java/org/microbean/proxy/AbstractReflectiveProxier.java b/src/main/java/org/microbean/proxy/AbstractReflectiveProxier.java index b2d67b1..728673e 100644 --- a/src/main/java/org/microbean/proxy/AbstractReflectiveProxier.java +++ b/src/main/java/org/microbean/proxy/AbstractReflectiveProxier.java @@ -1,6 +1,6 @@ /* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*- * - * Copyright © 2025 microBean™. + * Copyright © 2025–2026 microBean™. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/src/main/java/org/microbean/proxy/AbstractToolkitProxier.java b/src/main/java/org/microbean/proxy/AbstractToolkitProxier.java index 9e960e9..a0b997d 100644 --- a/src/main/java/org/microbean/proxy/AbstractToolkitProxier.java +++ b/src/main/java/org/microbean/proxy/AbstractToolkitProxier.java @@ -1,6 +1,6 @@ /* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*- * - * Copyright © 2025 microBean™. + * Copyright © 2025–2026 microBean™. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/src/main/java/org/microbean/proxy/ProxySpecification.java b/src/main/java/org/microbean/proxy/ProxySpecification.java index 0f21a3f..1c4dc69 100644 --- a/src/main/java/org/microbean/proxy/ProxySpecification.java +++ b/src/main/java/org/microbean/proxy/ProxySpecification.java @@ -1,6 +1,6 @@ /* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*- * - * Copyright © 2025 microBean™. + * Copyright © 2025–2026 microBean™. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -15,13 +15,12 @@ import java.util.List; +import javax.lang.model.element.AnnotationMirror; import javax.lang.model.element.TypeElement; import javax.lang.model.type.DeclaredType; import javax.lang.model.type.TypeMirror; -import org.microbean.attributes.Attributes; - import org.microbean.bean.BeanTypeList; import org.microbean.bean.Id; @@ -34,7 +33,7 @@ import static org.microbean.bean.BeanTypes.proxiableBeanType; /** - * Information about a proxy. + * Information about what requirements a {@link Proxy} must fulfil. * * @author Laird Nelson */ @@ -53,7 +52,7 @@ public class ProxySpecification { private final List interfaces; - private final List attributes; + private final List annotations; private final String name; @@ -79,7 +78,7 @@ public class ProxySpecification { public ProxySpecification(final Domain domain, final Id id) { super(); this.domain = domain; // not nullable - this.attributes = id.attributes(); + this.annotations = id.annotations(); final BeanTypeList types = id.types(); final TypeMirror t = types.get(0); // putative superclass if (t.getKind() != DECLARED || domain.javaLangObject(t) && types.size() == 1) { @@ -125,7 +124,7 @@ public boolean equals(final Object other) { return false; } } - return this.attributes().equals(her.attributes()); + return this.annotations().equals(her.annotations()); } else { return false; } @@ -137,17 +136,17 @@ public int hashCode() { hashCode = 17 * hashCode + this.domain.hashCode(); hashCode = 17 * hashCode + this.superclass().hashCode(); hashCode = 17 * hashCode + this.interfaces().hashCode(); - hashCode = 17 * hashCode + this.attributes().hashCode(); + hashCode = 17 * hashCode + this.annotations().hashCode(); return hashCode; } /** - * Returns an immutable {@link List} of {@link Attributes} describing this {@link ProxySpecification}. + * Returns an immutable {@link List} of {@link AnnotationMirror}s describing this {@link ProxySpecification}. * - * @return a non-{@code null}, immutable {@link List} of {@link Attributes} instances + * @return a non-{@code null}, immutable {@link List} of {@link AnnotationMirror} instances */ - public final List attributes() { - return this.attributes; + public final List annotations() { + return this.annotations; } /**