org.perfectjpattern.core.api.structural.proxy
Interface IProxy<S>

Type Parameters:
S - Subject element type
All Superinterfaces:
InvocationHandler, ISurrogate<S>
All Known Implementing Classes:
AbstractProxy, ImageProxy, SynchronizedProxy

public interface IProxy<S>
extends ISurrogate<S>

Proxy Design Pattern: Provide a surrogate or placeholder for another object to control access to it. (Gamma et al, Design Patterns)

Responsibility Abstract definition of the "Proxy":

Version:
$Revision: 1.0 $ $Date: Nov 25, 2007 3:06:58 PM $
Author:
Giovanni Azua
 

Method Summary
 S getRealSubject()
          Returns the actual wrapped Subject instance
 S getSubject()
          Returns the Proxy wrapper instance
 
Methods inherited from interface org.perfectjpattern.core.api.structural.ISurrogate
getComponent
 
Methods inherited from interface java.lang.reflect.InvocationHandler
invoke
 

Method Detail

getSubject

S getSubject()
Returns the Proxy wrapper instance

Returns:
Proxy wrapper instance

getRealSubject

S getRealSubject()
Returns the actual wrapped Subject instance

Returns:
actual wrapped Subject instance


Copyright © 2007-2009. All Rights Reserved.