Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Jun 20, 2023
1 parent 83acd5b commit 564f33d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
Expand Up @@ -90,7 +90,7 @@ public class InitDestroyAnnotationBeanPostProcessor implements DestructionAwareB
private final transient LifecycleMetadata emptyLifecycleMetadata =
new LifecycleMetadata(Object.class, Collections.emptyList(), Collections.emptyList()) {
@Override
public void checkConfigMembers(RootBeanDefinition beanDefinition) {
public void checkInitDestroyMethods(RootBeanDefinition beanDefinition) {
}
@Override
public void invokeInitMethods(Object target, String beanName) {
Expand Down Expand Up @@ -175,7 +175,7 @@ public BeanRegistrationAotContribution processAheadOfTime(RegisteredBean registe

private LifecycleMetadata findInjectionMetadata(RootBeanDefinition beanDefinition, Class<?> beanType) {
LifecycleMetadata metadata = findLifecycleMetadata(beanType);
metadata.checkConfigMembers(beanDefinition);
metadata.checkInitDestroyMethods(beanDefinition);
return metadata;
}

Expand Down Expand Up @@ -330,7 +330,7 @@ public LifecycleMetadata(Class<?> targetClass, Collection<LifecycleElement> init
this.destroyMethods = destroyMethods;
}

public void checkConfigMembers(RootBeanDefinition beanDefinition) {
public void checkInitDestroyMethods(RootBeanDefinition beanDefinition) {
Set<LifecycleElement> checkedInitMethods = new LinkedHashSet<>(this.initMethods.size());
for (LifecycleElement element : this.initMethods) {
String methodIdentifier = element.getIdentifier();
Expand Down
Expand Up @@ -56,21 +56,19 @@

/**
* Internal code generator to set {@link RootBeanDefinition} properties.
* <p>
* Generates code in the following form:<blockquote><pre class="code">
*
* <p>Generates code in the following form:<pre class="code">
* beanDefinition.setPrimary(true);
* beanDefinition.setScope(BeanDefinition.SCOPE_PROTOTYPE);
* ...
* </pre></blockquote>
* <p>
* The generated code expects the following variables to be available:
* <p>
* </pre>
*
* <p>The generated code expects the following variables to be available:
* <ul>
* <li>{@code beanDefinition} - The {@link RootBeanDefinition} to
* configure.</li>
* <li>{@code beanDefinition}: the {@link RootBeanDefinition} to configure</li>
* </ul>
* <p>
* Note that this generator does <b>not</b> set the {@link InstanceSupplier}.
*
* <p>Note that this generator does <b>not</b> set the {@link InstanceSupplier}.
*
* @author Phillip Webb
* @author Stephane Nicoll
Expand Down

0 comments on commit 564f33d

Please sign in to comment.