Fix javadoc warnings
Before this change there were numerous javadoc warnings being reported while building Spring framework API. This commit resolves most of the javadoc warnings, reducing the total number from 265 to 103. Issue: SPR-9113
This commit is contained in:
committed by
Chris Beams
parent
e830511e8a
commit
effb762558
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -41,7 +41,7 @@ public interface CacheAnnotationParser {
|
||||
* @param ae the annotated method or class
|
||||
* @return CacheOperation the configured caching operation,
|
||||
* or {@code null} if none was found
|
||||
* @see AnnotationCacheOperationSource#determineCacheOperation
|
||||
* @see AnnotationCacheOperationSource#determineCacheOperations(AnnotatedElement)
|
||||
*/
|
||||
Collection<CacheOperation> parseCacheAnnotations(AnnotatedElement ae);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -30,7 +30,7 @@ import org.springframework.context.annotation.AutoProxyRegistrar;
|
||||
* @since 3.1
|
||||
* @see EnableCaching
|
||||
* @see ProxyCachingConfiguration
|
||||
* @see AnnotationConfigUtils.CACHE_ASPECT_CONFIGURATION_CLASS_NAME
|
||||
* @see AnnotationConfigUtils#CACHE_ASPECT_CONFIGURATION_CLASS_NAME
|
||||
*/
|
||||
public class CachingConfigurationSelector extends AdviceModeImportSelector<EnableCaching> {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -163,7 +163,7 @@ public @interface EnableCaching {
|
||||
|
||||
/**
|
||||
* Indicate how caching advice should be applied. The default is
|
||||
* {@link AdviceMode.PROXY}.
|
||||
* {@link AdviceMode#PROXY}.
|
||||
* @see AdviceMode
|
||||
*/
|
||||
AdviceMode mode() default AdviceMode.PROXY;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -115,7 +115,7 @@ public class ConcurrentMapCache implements Cache {
|
||||
/**
|
||||
* Convert the given value from the internal store to a user value
|
||||
* returned from the get method (adapting <code>null</code>).
|
||||
* @param userValue the store value
|
||||
* @param storeValue the store value
|
||||
* @return the value to return to the user
|
||||
*/
|
||||
protected Object fromStoreValue(Object storeValue) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -39,8 +39,8 @@ public class EhCacheCacheManager extends AbstractCacheManager {
|
||||
|
||||
|
||||
/**
|
||||
* Returns the backing Ehcache {@link net.sf.ehcache.CacheManager}.
|
||||
* @return
|
||||
* Returns the backing EhCache {@link net.sf.ehcache.CacheManager}.
|
||||
* @return the backing EhCache {@link net.sf.ehcache.CacheManager}.
|
||||
*/
|
||||
public net.sf.ehcache.CacheManager getCacheManager() {
|
||||
return cacheManager;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -44,7 +44,6 @@ public class BeanFactoryCacheOperationSourceAdvisor extends AbstractBeanFactoryP
|
||||
* Set the cache operation attribute source which is used to find cache
|
||||
* attributes. This should usually be identical to the source reference
|
||||
* set on the cache interceptor itself.
|
||||
* @see CacheInterceptor#setCacheAttributeSource
|
||||
*/
|
||||
public void setCacheOperationSource(CacheOperationSource cacheOperationSource) {
|
||||
this.cacheOperationSource = cacheOperationSource;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2011 the original author or authors.
|
||||
* Copyright 2010-2012 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -24,7 +24,7 @@ import org.springframework.aop.support.DefaultPointcutAdvisor;
|
||||
* Proxy factory bean for simplified declarative caching handling.
|
||||
* This is a convenient alternative to a standard AOP
|
||||
* {@link org.springframework.aop.framework.ProxyFactoryBean}
|
||||
* with a separate {@link CachingInterceptor} definition.
|
||||
* with a separate {@link CacheInterceptor} definition.
|
||||
*
|
||||
* <p>This class is designed to facilitate declarative cache demarcation: namely, wrapping
|
||||
* a singleton target object with a caching proxy, proxying all the interfaces that the
|
||||
@@ -36,7 +36,7 @@ import org.springframework.aop.support.DefaultPointcutAdvisor;
|
||||
*
|
||||
* @author Costin Leau
|
||||
* @see org.springframework.aop.framework.ProxyFactoryBean
|
||||
* @see CachingInterceptor
|
||||
* @see CacheInterceptor
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CacheProxyFactoryBean extends AbstractSingletonProxyFactoryBean {
|
||||
|
||||
@@ -50,7 +50,6 @@ public class NameMatchCacheOperationSource implements CacheOperationSource, Seri
|
||||
* (e.g. "myMethod") and CacheOperation instances
|
||||
* (or Strings to be converted to CacheOperation instances).
|
||||
* @see CacheOperation
|
||||
* @see CacheOperationEditor
|
||||
*/
|
||||
public void setNameMap(Map<String, Collection<CacheOperation>> nameMap) {
|
||||
for (Map.Entry<String, Collection<CacheOperation>> entry : nameMap.entrySet()) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -28,7 +28,7 @@ import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* Indicates that a class declares one or more @{@link Bean} methods and may be processed
|
||||
* Indicates that a class declares one or more {@link Bean @Bean} methods and may be processed
|
||||
* by the Spring container to generate bean definitions and service requests for those
|
||||
* beans at runtime, for example:
|
||||
* <pre class="code">
|
||||
@@ -76,14 +76,14 @@ import org.springframework.stereotype.Component;
|
||||
* post processors that facilitate handling {@code @Configuration} classes.
|
||||
*
|
||||
* <h3>Via component scanning</h3>
|
||||
* <p>{@code @Configuration} is meta-annotated with @{@link Component}, therefore
|
||||
* <p>{@code @Configuration} is meta-annotated with {@link Component @Component}, therefore
|
||||
* {@code @Configuration} classes are candidates for component scanning (typically using
|
||||
* Spring XML's {@code <context:component-scan/>} element) and therefore may also take
|
||||
* advantage of @{@link Autowired}/@{@link Inject} at the field and method level (but not
|
||||
* at the constructor level).
|
||||
* advantage of {@link Autowired @Autowired}/{@link javax.inject.Inject @Inject}
|
||||
* at the field and method level (but not at the constructor level).
|
||||
* <p>{@code @Configuration} classes may not only be bootstrapped using
|
||||
* component scanning, but may also themselves <em>configure</em> component scanning using
|
||||
* the @{@link ComponentScan} annotation:
|
||||
* the {@link ComponentScan @ComponentScan} annotation:
|
||||
* <pre class="code">
|
||||
* @Configuration
|
||||
* @ComponentScan("com.acme.app.services")
|
||||
@@ -91,8 +91,8 @@ import org.springframework.stereotype.Component;
|
||||
* // various @Bean definitions ...
|
||||
* }</pre>
|
||||
*
|
||||
* See @{@link ComponentScan} Javadoc for details.
|
||||
*
|
||||
* See {@link ComponentScan @ComponentScan} Javadoc for details.
|
||||
*
|
||||
*
|
||||
* <h2>Working with externalized values</h2>
|
||||
* <h3>Using the {@code Environment} API</h3>
|
||||
@@ -115,7 +115,8 @@ import org.springframework.stereotype.Component;
|
||||
*
|
||||
* Properties resolved through the {@code Environment} reside in one or more "property
|
||||
* source" objects, and {@code @Configuration} classes may contribute property sources to
|
||||
* the {@code Environment} object using the @{@link PropertySources} annotation:
|
||||
* the {@code Environment} object using
|
||||
* the {@link org.springframework.core.env.PropertySources @PropertySources} annotation:
|
||||
* <pre class="code">
|
||||
* @Configuration
|
||||
* @PropertySource("classpath:/com/acme/app.properties")
|
||||
@@ -129,11 +130,11 @@ import org.springframework.stereotype.Component;
|
||||
* }</pre>
|
||||
*
|
||||
* See {@link org.springframework.core.env.Environment Environment}
|
||||
* and @{@link PropertySource} Javadoc for further details.
|
||||
*
|
||||
* and {@link PropertySource @PropertySource} Javadoc for further details.
|
||||
*
|
||||
* <h3>Using the {@code @Value} annotation</h3>
|
||||
* Externalized values may be 'wired into' {@code @Configuration} classes using
|
||||
* the @{@link Value} annotation:
|
||||
* the {@link Value @Value} annotation:
|
||||
* <pre class="code">
|
||||
* @Configuration
|
||||
* @PropertySource("classpath:/com/acme/app.properties")
|
||||
@@ -151,13 +152,13 @@ import org.springframework.stereotype.Component;
|
||||
* PropertySourcesPlaceholderConfigurer}, usually enabled via XML with
|
||||
* {@code <context:property-placeholder/>}. See the section below on composing
|
||||
* {@code @Configuration} classes with Spring XML using {@code @ImportResource},
|
||||
* see @{@link Value} Javadoc, and see @{@link Bean} Javadoc for details on working with
|
||||
* see {@link Value @Value} Javadoc, and see {@link Bean @Bean} Javadoc for details on working with
|
||||
* {@code BeanFactoryPostProcessor} types such as
|
||||
* {@code PropertySourcesPlaceholderConfigurer}.
|
||||
*
|
||||
* <h2>Composing {@code @Configuration} classes</h2>
|
||||
* <h3>With the {@code @Import} annotation</h3>
|
||||
* <p>{@code @Configuration} classes may be composed using the @{@link Import} annotation,
|
||||
* <p>{@code @Configuration} classes may be composed using the {@link Import @Import} annotation,
|
||||
* not unlike the way that {@code <import>} works in Spring XML. Because
|
||||
* {@code @Configuration} objects are managed as Spring beans within the container,
|
||||
* imported configurations may be injected using {@code @Autowired} or {@code @Inject}:
|
||||
@@ -189,7 +190,7 @@ import org.springframework.stereotype.Component;
|
||||
* new AnnotationConfigApplicationContext(AppConfig.class);</pre>
|
||||
*
|
||||
* <h3>With the {@code @Profile} annotation</h3>
|
||||
* {@code @Configuration} classes may be marked with the @{@link Profile} annotation to
|
||||
* {@code @Configuration} classes may be marked with the {@link Profile @Profile} annotation to
|
||||
* indicate they should be processed only if a given profile or profiles are
|
||||
* <em>active</em>:
|
||||
* <pre class="code">
|
||||
@@ -211,14 +212,14 @@ import org.springframework.stereotype.Component;
|
||||
* }
|
||||
* }</pre>
|
||||
*
|
||||
* See @{@link Profile} and {@link org.springframework.core.env.Environment Environment}
|
||||
* See {@link Profile @Profile} and {@link org.springframework.core.env.Environment Environment}
|
||||
* Javadoc for further details.
|
||||
*
|
||||
* <h3>With Spring XML using the {@code @ImportResource} annotation</h3>
|
||||
* As mentioned above, {@code @Configuration} classes may be declared as regular Spring
|
||||
* {@code <bean>} definitions within Spring XML files. It is also possible to
|
||||
* import Spring XML configuration files into {@code @Configuration} classes using
|
||||
* the @{@link ImportResource} annotation. Bean definitions imported from XML can be
|
||||
* the {@link ImportResource @ImportResource} annotation. Bean definitions imported from XML can be
|
||||
* injected using {@code @Autowired} or {@code @Import}:
|
||||
* <pre class="code">
|
||||
* @Configuration
|
||||
@@ -267,7 +268,7 @@ import org.springframework.stereotype.Component;
|
||||
* <h2>Configuring lazy initialization</h2>
|
||||
* <p>By default, {@code @Bean} methods will be <em>eagerly instantiated</em> at container
|
||||
* bootstrap time. To avoid this, {@code @Configuration} may be used in conjunction with
|
||||
* the @{@link Lazy} annotation to indicate that all {@code @Bean} methods declared within
|
||||
* the {@link Lazy @Lazy} annotation to indicate that all {@code @Bean} methods declared within
|
||||
* the class are by default lazily initialized. Note that {@code @Lazy} may be used on
|
||||
* individual {@code @Bean} methods as well.
|
||||
*
|
||||
@@ -291,7 +292,7 @@ import org.springframework.stereotype.Component;
|
||||
* }</pre>
|
||||
*
|
||||
* See TestContext framework reference documentation for details.
|
||||
*
|
||||
*
|
||||
* <h2>Enabling built-in Spring features using {@code @Enable} annotations</h2>
|
||||
* Spring features such as asynchronous method execution, scheduled task execution,
|
||||
* annotation driven transaction management, and even Spring MVC can be enabled and
|
||||
@@ -309,7 +310,7 @@ import org.springframework.stereotype.Component;
|
||||
* <li>@Configuration classes must be non-final
|
||||
* <li>@Configuration classes must be non-local (may not be declared within a method)
|
||||
* <li>@Configuration classes must have a default/no-arg constructor and may not
|
||||
* use @{@link Autowired} constructor parameters. Any nested configuration classes
|
||||
* use {@link Autowired @Autowired} constructor parameters. Any nested configuration classes
|
||||
* must be {@code static}
|
||||
* </ul>
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -64,13 +64,13 @@ import org.springframework.instrument.classloading.LoadTimeWeaver;
|
||||
* TomcatInstrumentableClassLoader}).
|
||||
*
|
||||
* <p>To customize the weaver used, the {@code @Configuration} class annotated with
|
||||
* {@code @EnableLoadTimeWeaving} may also implement the {@link LoadTimeWeaverConfigurer}
|
||||
* {@code @EnableLoadTimeWeaving} may also implement the {@link LoadTimeWeavingConfigurer}
|
||||
* interface and return a custom {@code LoadTimeWeaver} instance through the
|
||||
* {@code #getLoadTimeWeaver} method:
|
||||
* <pre class="code">
|
||||
* @Configuration
|
||||
* @EnableLoadTimeWeaving
|
||||
* public class AppConfig implements LoadTimeWeaverConfigurer {
|
||||
* public class AppConfig implements LoadTimeWeavingConfigurer {
|
||||
* @Override
|
||||
* public LoadTimeWeaver getLoadTimeWeaver() {
|
||||
* MyLoadTimeWeaver ltw = new MyLoadTimeWeaver();
|
||||
|
||||
@@ -28,8 +28,8 @@ import org.springframework.core.type.filter.AssignableTypeFilter;
|
||||
* @author Chris Beams
|
||||
* @since 2.5
|
||||
* @see ComponentScan
|
||||
* @see ComponentScan.IncludeFilter
|
||||
* @see ComponentScan.ExcludeFilter
|
||||
* @see ComponentScan#includeFilters()
|
||||
* @see ComponentScan#excludeFilters()
|
||||
* @see org.springframework.core.type.filter.TypeFilter
|
||||
*/
|
||||
public enum FilterType {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -23,23 +23,23 @@ import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Indicates one or more @{@link Configuration} classes to import.
|
||||
* Indicates one or more {@link Configuration @Configuration} classes to import.
|
||||
*
|
||||
* <p>Provides functionality equivalent to the {@code <import/>} element in Spring XML.
|
||||
* Only supported for classes annotated with {@code @Configuration} or declaring at least
|
||||
* one {@link @Bean} method, as well as {@link ImportSelector} and
|
||||
* one {@link Bean @Bean} method, as well as {@link ImportSelector} and
|
||||
* {@link ImportBeanDefinitionRegistrar} implementations.
|
||||
*
|
||||
* <p>@{@code Bean} definitions declared in imported {@code @Configuration} classes
|
||||
* should be accessed by using @{@link Autowired} injection. Either the bean itself can
|
||||
* be autowired, or the configuration class instance declaring the bean can be autowired.
|
||||
* The latter approach allows for explicit, IDE-friendly navigation between
|
||||
* {@code @Configuration} class methods.
|
||||
* <p>{@code @Bean} definitions declared in imported {@code @Configuration} classes
|
||||
* should be accessed by using {@link org.springframework.beans.factory.annotation.Autowired @Autowired}
|
||||
* injection. Either the bean itself can be autowired, or the configuration class instance
|
||||
* declaring the bean can be autowired. The latter approach allows for explicit,
|
||||
* IDE-friendly navigation between {@code @Configuration} class methods.
|
||||
*
|
||||
* <p>May be declared at the class level or as a meta-annotation.
|
||||
*
|
||||
* <p>If XML or other non-{@code @Configuration} bean definition resources need to be
|
||||
* imported, use @{@link ImportResource}
|
||||
* imported, use {@link ImportResource @ImportResource}
|
||||
*
|
||||
* @author Chris Beams
|
||||
* @since 3.0
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -19,12 +19,14 @@ package org.springframework.context.annotation;
|
||||
import org.springframework.instrument.classloading.LoadTimeWeaver;
|
||||
|
||||
/**
|
||||
* Interface to be implemented by @{@link org.springframework.context.annotation.Configuration
|
||||
* Configuration} classes annotated with @{@link EnableLoadTimeWeaving} that wish to
|
||||
* Interface to be implemented by
|
||||
* {@link org.springframework.context.annotation.Configuration @Configuration}
|
||||
* classes annotated with {@link EnableLoadTimeWeaving @EnableLoadTimeWeaving} that wish to
|
||||
* customize the {@link LoadTimeWeaver} instance to be used.
|
||||
*
|
||||
* <p>See @{@link EnableAsync} for usage examples and information on how a default
|
||||
* {@code LoadTimeWeaver} is selected when this interface is not used.
|
||||
* <p>See {@link org.springframework.scheduling.annotation.EnableAsync @EnableAsync}
|
||||
* for usage examples and information on how a default {@code LoadTimeWeaver}
|
||||
* is selected when this interface is not used.
|
||||
*
|
||||
* @author Chris Beams
|
||||
* @since 3.1
|
||||
|
||||
@@ -506,7 +506,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
|
||||
/**
|
||||
* <p>Replace any stub property sources with actual instances.
|
||||
* @see org.springframework.core.env.PropertySource.StubPropertySource
|
||||
* @see org.springframework.web.context.support.WebApplicationContextUtils#initSerlvetPropertySources
|
||||
* @see org.springframework.web.context.support.WebApplicationContextUtils#initServletPropertySources
|
||||
*/
|
||||
protected void initPropertySources() {
|
||||
// For subclasses: do nothing by default.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -108,7 +108,7 @@ public class PropertySourcesPlaceholderConfigurer extends PlaceholderConfigurerS
|
||||
* <p>Processing occurs by replacing ${...} placeholders in bean definitions by resolving each
|
||||
* against this configurer's set of {@link PropertySources}, which includes:
|
||||
* <ul>
|
||||
* <li>all {@linkplain Environment#getPropertySources environment property sources}, if an
|
||||
* <li>all {@linkplain org.springframework.core.env.ConfigurableEnvironment#getPropertySources environment property sources}, if an
|
||||
* {@code Environment} {@linkplain #setEnvironment is present}
|
||||
* <li>{@linkplain #mergeProperties merged local properties}, if {@linkplain #setLocation any}
|
||||
* {@linkplain #setLocations have} {@linkplain #setProperties been}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -41,7 +41,7 @@ import org.springframework.format.Printer;
|
||||
* @see #setTimeStyle
|
||||
* @see #setDateTimeStyle
|
||||
* @see #setUseIsoFormat
|
||||
* @see #installJodaTimeFormatting
|
||||
* @see FormatterRegistrar#registerFormatters
|
||||
*/
|
||||
public class JodaTimeFormatterRegistrar implements FormatterRegistrar {
|
||||
|
||||
|
||||
@@ -23,8 +23,9 @@ import org.springframework.util.Assert;
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
/**
|
||||
* {@link LoadTimeWeaver} implementation for GlassFish's {@link InstrumentableClassLoader}.
|
||||
*
|
||||
* {@link LoadTimeWeaver} implementation for GlassFish's
|
||||
* {@link org.glassfish.api.deployment.InstrumentableClassLoader InstrumentableClassLoader}.
|
||||
*
|
||||
* <p>As of Spring 3.0, GlassFish V3 is supported as well.
|
||||
*
|
||||
* @author Costin Leau
|
||||
@@ -49,7 +50,8 @@ public class GlassFishLoadTimeWeaver implements LoadTimeWeaver {
|
||||
* Creates a new instance of the <code>GlassFishLoadTimeWeaver</code> class.
|
||||
* @param classLoader the specific {@link ClassLoader} to use; must not be <code>null</code>
|
||||
* @throws IllegalArgumentException if the supplied <code>classLoader</code> is <code>null</code>;
|
||||
* or if the supplied <code>classLoader</code> is not an {@link InstrumentableClassLoader}
|
||||
* or if the supplied <code>classLoader</code> is not an
|
||||
* {@link org.glassfish.api.deployment.InstrumentableClassLoader InstrumentableClassLoader}
|
||||
*/
|
||||
public GlassFishLoadTimeWeaver(ClassLoader classLoader) {
|
||||
Assert.notNull(classLoader, "ClassLoader must not be null");
|
||||
|
||||
@@ -526,7 +526,7 @@ public class MBeanClientInterceptor
|
||||
* Convert the given result object (from attribute access or operation invocation)
|
||||
* to the specified target class for returning from the proxy method.
|
||||
* @param result the result object as returned by the <code>MBeanServer</code>
|
||||
* @param targetClass the result type of the proxy method that's been invoked
|
||||
* @param parameter the method parameter of the proxy method that's been invoked
|
||||
* @return the converted result object, or the passed-in object if no conversion
|
||||
* is necessary
|
||||
*/
|
||||
|
||||
@@ -88,7 +88,7 @@ public abstract class AbstractMBeanInfoAssembler implements MBeanInfoAssembler {
|
||||
* and the plain bean class else.
|
||||
* @param managedBean the bean instance (might be an AOP proxy)
|
||||
* @return the bean class to expose
|
||||
* @see org.springframework.aop.framework.AopProxyUtils#getTargetClass
|
||||
* @see org.springframework.aop.support.AopUtils#getTargetClass(Object)
|
||||
*/
|
||||
protected Class getTargetClass(Object managedBean) {
|
||||
return AopUtils.getTargetClass(managedBean);
|
||||
@@ -100,7 +100,7 @@ public abstract class AbstractMBeanInfoAssembler implements MBeanInfoAssembler {
|
||||
* (for example, checked for annotations).
|
||||
* @param managedBean the bean instance (might be an AOP proxy)
|
||||
* @return the bean class to expose
|
||||
* @see JmxUtils#getClassToExpose(Object)
|
||||
* @see JmxUtils#getClassToExpose(Object)
|
||||
*/
|
||||
protected Class<?> getClassToExpose(Object managedBean) {
|
||||
return JmxUtils.getClassToExpose(managedBean);
|
||||
|
||||
@@ -45,7 +45,7 @@ import org.springframework.util.Assert;
|
||||
*
|
||||
* @author Juergen Hoeller
|
||||
* @since 3.0
|
||||
* @see PersistenceExceptionTranslationAdvisor
|
||||
* @see org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor
|
||||
* @see org.springframework.stereotype.Repository
|
||||
* @see org.springframework.dao.DataAccessException
|
||||
* @see org.springframework.dao.support.PersistenceExceptionTranslator
|
||||
@@ -126,8 +126,8 @@ public class AsyncAnnotationAdvisor extends AbstractPointcutAdvisor {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate a pointcut for the given target class, if any.
|
||||
* @param targetClass the class to introspect
|
||||
* Calculate a pointcut for the given async annotation types, if any.
|
||||
* @param asyncAnnotationTypes the async annotation types to introspect
|
||||
* @return the applicable Pointcut object, or <code>null</code> if none
|
||||
*/
|
||||
protected Pointcut buildPointcut(Set<Class<? extends Annotation>> asyncAnnotationTypes) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -76,7 +76,7 @@ public class MethodValidationInterceptor implements MethodInterceptor {
|
||||
|
||||
/**
|
||||
* Create a new MethodValidationInterceptor using the given JSR-303 Validator.
|
||||
* @param validatorFactory the JSR-303 Validator to use
|
||||
* @param validator the JSR-303 Validator to use
|
||||
*/
|
||||
public MethodValidationInterceptor(Validator validator) {
|
||||
this.validator = validator.unwrap(MethodValidator.class);
|
||||
|
||||
Reference in New Issue
Block a user