pzoio / impala

Automatically exported from code.google.com/p/impala
1 stars 2 forks source link

Create service proxy which is backed by static list of items obtained from service registry #186

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Applies as of r3902

ContributionProxyFactoryBean uses TargetSource which dynamically retrieves
target bean/service from service registry each time getTarget() is invoked.
This is fine when it is simply looking up a service by name. However, if
more complex sorting or filtering is required, then this potentially
involves too much overhead.

The alternative is to allow the TargetSource to statically hold the
entries, similar to the way the ServiceRegistryMap does this. When
getTarget is called, it simply returns the first on the list.

Original issue reported on code.google.com by philzoio...@googlemail.com on 23 Apr 2009 at 8:09

GoogleCodeExporter commented 9 years ago
Fixed with FilteredServiceFactoryBean:
http://impala.googlecode.com/svn/trunk/impala/impala-core/src/org/impalaframewor
k/spring/service/proxy/FilteredServiceProxyFactoryBean.java

Applies as r4024

Original comment by philzoio...@googlemail.com on 7 May 2009 at 9:42