Fix various typos in the code & docs

This commit is contained in:
René Scheibe
2022-06-08 16:11:45 +02:00
committed by GitHub
parent cf742d3b86
commit 9f4428153c
29 changed files with 40 additions and 43 deletions

View File

@@ -38,7 +38,7 @@ public interface UserService {
/**
* Retrieves a user based on the provided username that is provided as a Map
* entry using the mapkey 'username'. Map object is routed to the
* entry using the key 'username'. Map object is routed to the
* "findUserWithMapChannel" channel.
*/
Map<String, Object> findUserWithUsernameInMap(Map<String, Object> userdata);

View File

@@ -29,7 +29,7 @@ import org.springframework.integration.samples.enricher.domain.User;
public class UserServiceTest {
@Test
public void testStartupOfSpringInegrationContext() throws Exception {
public void testStartupOfSpringIntegrationContext() throws Exception {
final ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
"/META-INF/spring/integration/spring-integration-context.xml", UserServiceTest.class);
Thread.sleep(2000);

View File

@@ -33,7 +33,7 @@ public interface PersonService {
/**
* Creates a {@link Person} instance from the {@link Person} instance passed
*
* @param person created person instance, it will contain the generated primary key and the formated name
* @param person created person instance, it will contain the generated primary key and the formatted name
* @return The persisted Entity
*/
Person createPerson(Person person);

View File

@@ -12,7 +12,7 @@
<int:channel id="receiveChannel" />
<!-- replace 'userid and 'password' with the real values -->
<int-mail:imap-idle-channel-adapter id="customAdapter"
store-uri="imaps://[userid]:[pasword]@imap.gmail.com:993/inbox"
store-uri="imaps://[userid]:[password]@imap.gmail.com:993/inbox"
channel="receiveChannel"
auto-startup="true"
should-delete-messages="false"

View File

@@ -5,7 +5,7 @@ Spring Integration - MongoDb Sample
The *MongoDb Outbound Channel Adapter* allows you to write the Message payload to a MongoDb document store. You can see the simplest configuration of the MongoDb Channel Adapter below:
<int-mongodb:outbound-channel-adapter id="deafultAdapter"/>
<int-mongodb:outbound-channel-adapter id="defaultAdapter"/>
It will be initialized with the default instance of the **MongoDbFactory** (the default bean name is 'mongoDbFactory') otherwise you can provide its
reference via **mongodb-factory** attribute.

View File

@@ -32,9 +32,9 @@ public class MongoDbOutboundAdapterDemo {
* @param args
*/
public static void main(String[] args) throws Exception {
DemoUtils.prepareMongoFactory(); // will clean up MOngoDb
DemoUtils.prepareMongoFactory(); // will clean up MongoDB
new MongoDbOutboundAdapterDemo().runDefaultAdapter();
// new MongoDbOutboundAdapterDemo().runAdapterWithConveter();
// new MongoDbOutboundAdapterDemo().runAdapterWithConverter();
}
public void runDefaultAdapter() throws Exception {
@@ -43,13 +43,13 @@ public class MongoDbOutboundAdapterDemo {
ClassPathXmlApplicationContext context =
new ClassPathXmlApplicationContext("mongodb-out-config.xml", MongoDbOutboundAdapterDemo.class);
MessageChannel messageChannel = context.getBean("deafultAdapter", MessageChannel.class);
MessageChannel messageChannel = context.getBean("defaultAdapter", MessageChannel.class);
messageChannel.send(new GenericMessage<Person>(this.createPersonA()));
messageChannel.send(new GenericMessage<Person>(this.createPersonB()));
messageChannel.send(new GenericMessage<Person>(this.createPersonC()));
}
public void runAdapterWithConveter() throws Exception {
public void runAdapterWithConverter() throws Exception {
@SuppressWarnings("resource")
ClassPathXmlApplicationContext context =

View File

@@ -12,7 +12,7 @@
<mongo:db-factory id="mongoDbFactory" dbname="test"/>
<int-mongodb:outbound-channel-adapter id="deafultAdapter" />
<int-mongodb:outbound-channel-adapter id="defaultAdapter" />
<int-mongodb:outbound-channel-adapter id="adapterWithConverter" mongo-converter="stringConverter"/>

View File

@@ -39,7 +39,7 @@ NOTE: You can see that we are using *SpEL* via the **remote-filename-generator-e
## OUTBOUND GATEWAY
Run the **FtpOutoundGateway** sample as a JUnit test; it creates 2 files, retrieves and removes them over ftp. It cleans up by removing the retrieved files. The test assumes full access to the filesystem via **/tmp** where the test files are created. Requires **sshd** to be running on localhost.
Run the **FtpOutboundGateway** sample as a JUnit test; it creates 2 files, retrieves and removes them over ftp. It cleans up by removing the retrieved files. The test assumes full access to the filesystem via **/tmp** where the test files are created. Requires **sshd** to be running on localhost.
This sample uses a property **private.keyfile** to point to the location of your private key. Requires setting of **user**, **private.keyfile** and, optionally, **passphrase** in **user.properties**.

View File

@@ -108,7 +108,7 @@ public class TcpBroadcastApplication {
}
/*
* Wait for server to start listenng and start 5 clients.
* Wait for server to start listening and start 5 clients.
*/
@Bean
public ApplicationRunner runner(TaskExecutor exec, Broadcaster caster) {

View File

@@ -75,8 +75,8 @@ public class CustomSerializerDeserializer implements Serializer<CustomOrder>, De
byte[] senderName = object.getSender().getBytes();
outputStream.write(senderName);
String lenghtPadded = pad(6, object.getMessage().length());
byte[] length = lenghtPadded.getBytes();
String lengthPadded = pad(6, object.getMessage().length());
byte[] length = lengthPadded.getBytes();
outputStream.write(length);
outputStream.write(object.getMessage().getBytes());

View File

@@ -4,7 +4,7 @@ XMPP Sample
This example was prepared for testing with [Google Talk][] and demonstrates the following aspects of the [Extensible Messaging and Presence Protocol][] (XMPP) support available with *Spring Integration*:
1. XMPP Inbound Channel Adapter - receive instant messages.
2. XMPP Outboud Channel Adapter - send instant messages.
2. XMPP Outbound Channel Adapter - send instant messages.
In order to run this sample you need to provide correct values in **xmpp.properties**.
Everything there was already preset. The only 3 properties you need to provide values for are:
@@ -19,4 +19,4 @@ To test **SendInstantMessageSample.java**, first log on to the account identifie
To test **ReceiveInstantMessageSample.java**, first log on to the account identified via **send.to.user** property. Then run the demo. Now any instant messages sent to your account appear in the console.
[Google Talk]: https://www.google.com/talk/
[Extensible Messaging and Presence Protocol]: https://en.wikipedia.org/wiki/Extensible_Messaging_and_Presence_Protocol
[Extensible Messaging and Presence Protocol]: https://en.wikipedia.org/wiki/Extensible_Messaging_and_Presence_Protocol