no.sesat.commons.ioc
Class ContextWrapper
java.lang.Object
no.sesat.commons.ioc.ContextWrapper
public final class ContextWrapper
- extends Object
Utility class to create Proxy wrappers to a single defined context class from a list of context subclasses.
Will fail if the list of contexts does not provide the complete implementation to the required proxy'd context.
- Version:
- $Id: ContextWrapper.java 1127 2009-01-21 16:16:08Z ssmiweve $
- Author:
- Michael Semb Wever
Method Summary |
static
|
wrap(Class<T> context,
BaseContext... cxts)
Returns a proxy class implementing the context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wrap
public static <T extends BaseContext> T wrap(Class<T> context,
BaseContext... cxts)
- Returns a proxy class implementing the context.
It will proxy all methods to the first applicable
method found in the list of Contexts.
Copyright © 2009 Schibsted Søk AS. All Rights Reserved.