Commit Graph

133 Commits

Author SHA1 Message Date
Artem Bilan
5be8ef3fd8 INT-3147: (3167,3173,1941) Improve MetadataStore
Previously, `MetadataStore` couldn't be configured for Twitter Adapters
- only a global one could be used.
The `metadataKey` was generated automatically with a 'difficult' value.

* Register all `MessageSource` for `SourcePollingChannelAdapter`
as beans with id based on adapter id and prefix '.source' (INT-3147)
* Polishing parser to get rid of explicit `MessageSource` beans. (INT-3147)
* Make Feed and Twitter adapters `id` attribute as required -
now it presents a `metadataKey` for `MetadataStore` (INT-3147)
* Add to Twitter adapters a reference attribute for `MetadataStore` (INT-3173)
* Add Twitter adapters `poll-skip-period` attribute (INT-3167)
* Add and implement `MetadataStore#remove` (INT-1941)
* Make `MetadataStore` as `@ManagedResource` (INT-1941)
* Polishing tests

JIRAs:
https://jira.springsource.org/browse/INT-3147
https://jira.springsource.org/browse/INT-3167
https://jira.springsource.org/browse/INT-3173
https://jira.springsource.org/browse/INT-1941

INT-3147: Polishing and fixes

* add domain suffix to `metadataKey`
* change contract of `MetadataStore.remove`
* remove timeout window from `AbstractTwitterMessageSource`
* polishing and fix `SearchReceivingMessageSourceWithRedisTests`

INT-3147: Rebasing and polishing

INT-3147: fix 'metadata' package tangle

INT-3147 Doc Polishing
2013-11-04 12:44:12 -05:00
Artem Bilan
f3d3f4ee4b INT-2998: Channel Adapters' Lifecycle Refactoring
* Add XSD attributeGroup `smartLifeCycleAttributeGroup`
* Use it for all adapters tags
* Refactoring `AbstractChannelAdapterParser` hierarchy
* Refactoring some `MessageHandler`'s that should not have `autoStartup` & `phase`.
    It is the responsibility of `AbstrctEndpoint`
* Polishing some tests according new logic

JIRA: https://jira.springsource.org/browse/INT-2998

INT-2998: Polishing

Polishing

 - Reformat schemas where indentation changed
 - Add SLC to the UDP inbound adapter
2013-09-23 17:58:58 -04:00
Craig Walls
56f9581b85 Update Spring Social Twitter version to 1.0.4
(Refactor) Use SearchParameters for searching Twitter
2013-06-07 18:17:35 -04:00
Gary Russell
00cb16ec21 INT-2996 Fix Class and Package Cycles
INT-2996 Fix Package Cycle

Move interface ...store.MetadataStore to ...store.metadata.

INT-2996 Fix Class Tangle

TcpConnectionEvent incorrectly referenced the
concrete TcpConnectionSupport instead of TcpConnection.
2013-04-16 19:10:48 -04:00
Gary Russell
451beb424a INT-2873 Create 3.0 Schemas
Copy schemas, cleanup whitespace, update spring.schemas files,
update version in AbstractIntegrationNamespaceHandler.

For each schema compared the 2.2 version with the 3.0 version
(diff -w), ensuring the only difference is the import of
3.0 schemas (where appropriate) instead of 2.2.
2013-01-25 16:12:00 -05:00
michaljemala
1eb1301b1f INT-2801 Twitter: Fix Init. of Metadata Key
Key was not initialized unless authorized.
2012-11-08 15:10:25 -05:00
Gary Russell
08cbab08c2 INT-2214, INT-343, INT-2250 MessageHandler Advice
Add general capability to advise just the handleRequestMessage
part of an AbstractReplyProducingMessageHandler.

This is to advise just the immediate operation, and not the
entire downstream flow.

Uses include:

* outbound gateway post processing
* adding retry behavior using spring-retry
* adding circuit breaker functionality

Initial commit for review.

Also need to advise simple message handlers (such as file
etc) to allow them to post-process file operations
with payload.delete(), payload.renameTo(...) etc.

INT-2250 Add Circuit Breaker Advice

INT-343 Add Retry Advice

Stateless and Stateful retry using spring-retry. Stateless
means the RetryTemplate performs the retries internally.
Stateful means the exception is thrown (e.g. to JMS container)
and the retry state is maintained by spring-retry.

INT-2215, INT-343, INT-2250 Refactoring

Factor out common abstract Advice class.

INT-2214 Catch Evaluation Expression Exceptions

If an onSuccess expression evaluation fails, add an
option so the user can decide whether such an exception is
caught, or propagated to the caller.

INT-2214 etc PR Review Polishing

INT-2214 etc Namespace Core, File, FTP

Add <request-handler-advice-chain/> to outbound endpoints.

INT-2214 etc. More Namespace Support

amqp, event, gemfire, groovy, http, ip, jdbc, jms, jmx, jpa, mail, rmi, sftp, twitter, ws, xmpp

INT-2214 etc Polishing

PR Review

INT-2214 etc Polishing

Don't catch Throwable.

Move Advice classes to handler.advice package.
2012-08-06 09:15:58 -04:00
Gary Russell
95cd202be6 INT-2536 Create 2.2 Schemas
Add 2.2 versions of module schemas.

JMX is already covered by an existing pull request.

INT-2536 Schema Check

Bump version for schema check in
AbstractIntegrationNamespaceHandler.

INT-2536 Remove Schema Versions

Some test config files had 2.1 versioned schemas.
2012-05-04 10:04:01 -04:00
Gunnar Hillert
d0b08474fd INT-2446 - Twitter: Allow unauthorized operations
* also improve test code coverage
2012-03-30 09:49:23 -04:00
Gary Russell
f76f63f23a NT-2400 Fix tool:expected-type Classes
* MessageChannel was moved from core to the base package.
* ChannelResolver moved from core to support.
* TcpConnectionInterceptorFactoryChain was incorrect.
2012-01-13 13:21:41 -05:00
Gunnar Hillert
bd3a93d601 INT-2371 - add package-info.java files - XML
See: https://jira.springsource.org/browse/INT-2371

INT-2370 - add package-info.java files - JDBC
Reference: https://jira.springsource.org/browse/INT-2370

Add package-info.java files - Twitter
For reference: https://jira.springsource.org/browse/INT-2383

INT-2386 - add package-info.java files - XMPP
For reference: https://jira.springsource.org/browse/INT-2386

INT-2384 - add package-info.java files - WS
Reference: https://jira.springsource.org/browse/INT-2384

INT-2382 - add package-info.java files - Test
For reference: https://jira.springsource.org/browse/INT-2382
2012-01-05 16:17:18 -05:00
Oleg Zhurakousky
43f60dae08 INT-2238 interim commit
INT-2238 fixing warning comments

INT-2238 fixing warning comments

INT-2238 fixing warning comments
2011-11-22 21:10:32 -05:00
Mark Fisher
cfccea104f INT-2150:fixed xsd doc errors 2011-09-29 10:59:09 -04:00
Mark Fisher
2c134cc4a9 fixed copy/paste mistakes 2011-09-29 10:15:02 -04:00
Oleg Zhurakousky
232335630b INT-2150 polishing schema, updated expected-type 2011-09-29 09:32:26 -04:00
Oleg Zhurakousky
6e76e12d2f INT-2150 removed one mroe reference for Twitter4J from xsd 2011-09-29 08:42:12 -04:00
Oleg Zhurakousky
3e22d73963 INT-2150 fixed Twitter schema to remove Twitter4J references 2011-09-28 15:52:09 -04:00
Mark Fisher
00ed21cbae using parameterized types 2011-09-15 14:22:43 -04:00
Oleg Zhurakousky
e5ce83329f migrated Twitter support to use Spring Social 2011-09-15 13:35:52 -04:00
Mark Fisher
7c5603fe83 INT-2092 update schema imports to use 2.1 version 2011-08-31 05:26:02 -04:00
Mark Fisher
3e71b5a83b INT-2004 added 2.1 versions of all XML schemas and adjusted spring.schemas files accordingly 2011-08-05 11:07:20 -04:00
Mark Fisher
9cd0871739 removing warnings 2011-07-15 11:50:53 -04:00
Oleg Zhurakousky
b3c427ed0c INT-1902 polished Twitter upgrade to make sure it is still backward compatible, also upgraded to the latest version 2.1.12 2011-05-11 18:26:10 -04:00
Oleg Zhurakousky
3f91ba3064 INT-1902 upgraded Twitter to use Twitter4J-2.1.10 2011-05-11 17:27:40 -04:00
Gary Russell
5f180de201 INT-1848 Add order Attribute (twitter) 2011-04-30 11:06:24 -04:00
Mark Fisher
e50688fb1d removed class level tangle 2010-12-17 15:39:35 -05:00
Mark Fisher
0be6410a6d INT-1636 rolling back the DM target user expression support 2010-12-16 18:45:12 -05:00
Mark Fisher
403e929eb6 polishing 2010-12-16 16:50:57 -05:00
Oleg Zhurakousky
4b33a4d4fa INT-1636 updated Twitter documentation regarding 'target-user-expression' 2010-12-10 16:20:28 -05:00
Oleg Zhurakousky
2a456d9373 INT-1636 added 'target-user-expression' to the Twitter DM adapter 2010-12-10 16:00:13 -05:00
Mark Fisher
1803d73547 INT-1676 added spring.tooling and .gif icons for adapters that were missing these files 2010-12-10 10:41:54 -05:00
Oleg Zhurakousky
20ee9d8fe7 INT-1552 added Twitter schema docs 2010-11-22 11:44:44 -05:00
Mark Fisher
11477bbe63 changed case for 'j' 2010-11-18 22:03:27 -05:00
Mark Fisher
8759d79e22 removed unused 'in-reply-to' Twitter header 2010-11-18 22:01:28 -05:00
Mark Fisher
d04c0be68a removed 'lastPage' boolean flag from SearchResults since it was never being used (was always false) 2010-11-18 21:49:01 -05:00
Mark Fisher
262adbaeab refactored 'task' inner class into a private method for simplicity 2010-11-18 19:48:14 -05:00
Mark Fisher
382e074f59 AbstractTwitterMessageSource no longer implements Lifecycle (no longer extends AbstractEndpoint). @Ignore-d irrelevant tests, and removed the RateLimitStatusTrigger. 2010-11-18 19:44:48 -05:00
Mark Fisher
5265dad85d removed getFriends() method because we were never calling it (how sad) 2010-11-18 19:20:34 -05:00
Mark Fisher
96552d0a0d removed unused 'page' param (might add later when we do want to use it) from twitter search method 2010-11-18 19:01:50 -05:00
Oleg Zhurakousky
f549ccbdd9 fixing broken Twitter tests 2010-11-18 14:35:44 -05:00
Oleg Zhurakousky
2d9af9b849 polishing Twitter 2010-11-18 14:11:37 -05:00
Oleg Zhurakousky
24521e97b9 minor polishing of Twitter before polishing the Twitter docs 2010-11-12 11:22:09 -05:00
Chris Beams
5a39dd1d24 Fix minor compiler warnings 2010-11-11 17:11:40 -08:00
Chris Beams
80f9a1404d fixup 2010-11-11 16:37:13 -08:00
Chris Beams
bd5a3d190b Merge branch 'buildSrc'
Added 'buildSrc' directory as a git submodule to be shared across
all Spring open-source projects. This eliminates the need to maintain
custom Gradle code within Spring Integration directly.

For a brief introduction to git submodules, see
    http://speirs.org/blog/2009/5/11/understanding-git-submodules.html

And of course the official documentation is at
    http://www.kernel.org/pub/software/scm/git/docs/git-submodule.html
    https://git.wiki.kernel.org/index.php/GitSubmoduleTutorial

Conflicts:
	spring-integration-twitter/src/main/java/org/springframework/integration/twitter/core/Twitter4jTemplate.java
	spring-integration-twitter/src/test/java/org/springframework/integration/twitter/inbound/SearchReceivingMessageSourceTests.java
2010-11-11 16:26:53 -08:00
Mark Fisher
c57280c173 polishing 2010-11-11 19:01:15 -05:00
Mark Fisher
ae619d95bf INT-1604 removed OutboundTweetMessageMapper and AbstractOutboundTwitterEndpointSupport, renamed TimelineSendingMessageHandler to StatusUpdatingMessageHandler 2010-11-11 18:54:20 -05:00
Mark Fisher
e02582f079 INT-1604 removed unused methods from TwitterOperations and Twitter4JTemplate, renamed 'markerId' to 'lastEnqueuedId', and now passing the 'sinceId' into subclass' pollForTweets(..) callback, and the search adapter now takes 'sinceId' into account as well 2010-11-11 18:42:28 -05:00
Mark Fisher
82ddb01cfd INT-1604 polishing 2010-11-11 18:29:05 -05:00
Mark Fisher
3524606a84 INT-1604 polishing 2010-11-11 18:25:49 -05:00