Browse Source

Fix typos in ServiceLocatorFactoryBean

pull/273/head
Sam Brannen 13 years ago
parent
commit
cf687fcc72
  1. 10
      spring-beans/src/main/java/org/springframework/beans/factory/config/ServiceLocatorFactoryBean.java

10
spring-beans/src/main/java/org/springframework/beans/factory/config/ServiceLocatorFactoryBean.java

@ -65,17 +65,17 @@ import org.springframework.util.StringUtils;
* int or a custom enumeration type, for example, stringified via * int or a custom enumeration type, for example, stringified via
* {@code toString}. The resulting String can be used as bean name as-is, * {@code toString}. The resulting String can be used as bean name as-is,
* provided that corresponding beans are defined in the bean factory. * provided that corresponding beans are defined in the bean factory.
* Alternatively, {@link #setServiceMappings(java.util.Properties) a custom mapping} * Alternatively, {@linkplain #setServiceMappings(java.util.Properties) a custom
* between service ids and bean names can be defined. * mapping} between service IDs and bean names can be defined.
* *
* <p>By way of an example, consider the following service locator interface. * <p>By way of an example, consider the following service locator interface.
* Note that this interface is not dependant on any Spring APIs. * Note that this interface is not dependent on any Spring APIs.
* *
* <pre class="code">package a.b.c; * <pre class="code">package a.b.c;
* *
*public interface ServiceFactory { *public interface ServiceFactory {
* *
* public MyService getService (); * public MyService getService();
*}</pre> *}</pre>
* *
* <p>A sample config in an XML-based * <p>A sample config in an XML-based
@ -121,7 +121,7 @@ import org.springframework.util.StringUtils;
* *
* <p>By way of an example that looks up a bean <b>by name</b>, consider * <p>By way of an example that looks up a bean <b>by name</b>, consider
* the following service locator interface. Again, note that this * the following service locator interface. Again, note that this
* interface is not dependant on any Spring APIs. * interface is not dependent on any Spring APIs.
* *
* <pre class="code">package a.b.c; * <pre class="code">package a.b.c;
* *

Loading…
Cancel
Save