org.perfectjpattern.core.api.structural
Interface ISurrogate<C>

Type Parameters:
C - Component or wrapper element type
All Superinterfaces:
InvocationHandler
All Known Subinterfaces:
IAdapter<T,A>, IComposite<C>, IDecorator<C,D>, IProxy<S>
All Known Implementing Classes:
AbstractDecorator, AbstractProxy, AbstractSurrogate, Adapter, BorderDecorator, Composite, EntityManagerAdapter, EntityTransactionAdapter, HibernateQueryAdapter, HibernateSessionAdapter, HibernateTransactionAdapter, ImageProxy, JpaQueryAdapter, List2QueueAdapter, ScrollDecorator, SynchronizedProxy

public interface ISurrogate<C>
extends InvocationHandler

Base abstraction for any Design Pattern type whose structure is based on surrogation or wrapping. Surrogate Design Patterns are those that for some purpose wrap and provide to clients the same interface view of the actual wrapped Component interface.

Structural surrogate Patterns are:

Version:
$Revision: 1.0 $Date: Apr 5, 2008 3:44:45 PM $
Author:
Giovanni Azua
 

Method Summary
 C getComponent()
          Returns the Component interface view <C> of this ISurrogate

Client code calls this method to receive an instance of type <C> making accessible the Component business methods while the underlying implementation is wrapped by this surrogate.
 
Methods inherited from interface java.lang.reflect.InvocationHandler
invoke
 

Method Detail

getComponent

C getComponent()
Returns the Component interface view <C> of this ISurrogate

Client code calls this method to receive an instance of type <C> making accessible the Component business methods while the underlying implementation is wrapped by this surrogate.

Returns:
Component interface view <C> of this ISurrogate type


Copyright © 2007-2009. All Rights Reserved.