coherence-community / oracle-bedrock

Oracle Bedrock
Other
55 stars 31 forks source link

Introduce the ability to create a Proxy of an instance in a JavaApplication locally #124

Closed brianoliver closed 10 years ago

brianoliver commented 10 years ago

Imagine that we know how to obtain an instance of some object that is running in a application (local, remote etc). Let's call it "NameCache".

Now imagine that we'd like to be able to interact with the said "NamedCache" in the running application. One thing we could do is dynamically create a proxy of the NamedCache locally and then delegate all requests to the running application instance.

Of course this would mean that all parameters to methods (and return values) would need to be serializable, but for a lot of cases this is fine.

Essentially this allows us to create a dynamic RMI-like facility, which is especially useful for testing. When using serializable Java 8 lambdas, this is a very elegant solution.

ASIDE: This allows us to create NamedCaches in test applications for Coherence, without the test application having to be configured for either joining the cluster or connecting to the cluster (over *Extend)

brianoliver commented 8 years ago

This issue was imported from JIRA ORACLETOOLS-124

brianoliver commented 10 years ago

Reported by @brianoliver

brianoliver commented 10 years ago

Marked as fixed by @brianoliver on Thursday, July 3rd 2014, 9:19:20 am