ch.elca.el4j.util.interfaceenrichment
Interface EnrichmentDecorator

All Known Implementing Classes:
ContextEnrichmentDecorator, RmiEnrichmentDecorator

public interface EnrichmentDecorator

This interface is used to describe how an interface should be decorated. With decoration we mean that we create a shadow interface that is slightly different than the original interface. The shadow interface can additionally implement a new interfaces and/or one can change any signatures of its methods.

Author:
Martin Zeltner (MZE)
File-location:
EnrichmentDecorator
Last check-in date:
2009-08-04 14:25:40 +0200 (Di, 04. Aug 2009) by swismer for revision 3874

Method Summary
 Class<?>[] changedExtendedInterface(Class<?>[] extendedInterfaces)
          Method to change classes, which are extended by the interface.
 String changedInterfaceName(String originalInterfaceName)
          Method to change the name of the interface.
 MethodDescriptor changedMethodSignature(MethodDescriptor method)
          Method to change the signature of given method.
 

Method Detail

changedInterfaceName

String changedInterfaceName(String originalInterfaceName)
Method to change the name of the interface.

Parameters:
originalInterfaceName - Is the name of the original interface.
Returns:
Returns the newly created interface name.

changedExtendedInterface

Class<?>[] changedExtendedInterface(Class<?>[] extendedInterfaces)
Method to change classes, which are extended by the interface.

Parameters:
extendedInterfaces - Are the extended interfaces of the original interface.
Returns:
Returns the extended interfaces for the new interface.

changedMethodSignature

MethodDescriptor changedMethodSignature(MethodDescriptor method)
Method to change the signature of given method.

Parameters:
method - Is the method from the original interface.
Returns:
Returns the method signature for the new interface.


Copyright © 2005-2011 ELCA. All Rights Reserved.