org.oddjob.framework
Interface WrapperFactory<T>

Type Parameters:
T - The type of the component to be wrapped.
All Known Implementing Classes:
BaseWrapperFactory

public interface WrapperFactory<T>

Something the can create a wrapper for a component.

Author:
rob

Method Summary
 ComponentWrapper wrapperFor(T wrapped, Object proxy)
          Create a wrapper.
 Class<?>[] wrappingInterfacesFor(T wrapped)
          Get the Interfaces the wrapper adds to the component.
 

Method Detail

wrappingInterfacesFor

Class<?>[] wrappingInterfacesFor(T wrapped)
Get the Interfaces the wrapper adds to the component.

Parameters:
wrapped - The component to be wrapped.
Returns:

wrapperFor

ComponentWrapper wrapperFor(T wrapped,
                            Object proxy)
Create a wrapper.

Parameters:
wrapped - The component to be wrapped.
proxy - The dynamic proxy.
Returns:
The Wrapper.