public interface Aspect
| Modifier and Type | Method and Description |
|---|---|
Aspect |
createChildAspect()
This method creates a child aspect, and returns it.
|
<T> T |
inject(ConstructorDef<T> def,
Constructor<T> constructor,
Object[] args)
Inject an object of type T.
|
<T> void |
injectionFutureInstantiated(InjectionFuture<T> f,
T t)
TANG calls this the first time get() is called on an injection future.
|
<T> T inject(ConstructorDef<T> def, Constructor<T> constructor, Object[] args) throws InvocationTargetException, IllegalAccessException, IllegalArgumentException, InstantiationException
def - information about the constructor to be invoked. This is
mostly useful because it contains references to any relevant named
parameters, and to the class to be injected.constructor - The java constructor to be injected. Tang automatically
chooses the appropriate constructor and ensures that we have permission
to invoke it.args - The parameters to be passed into constructor.newInstance(), in the correct order.A - number of exceptions which are passed-through from the wrapped call to newInstance().InvocationTargetExceptionIllegalAccessExceptionIllegalArgumentExceptionInstantiationException<T> void injectionFutureInstantiated(InjectionFuture<T> f, T t)
f - An InjectionFuture that was passed to the args[] array of inject at some point in the past.t - An object instance that was returned by inject().Aspect createChildAspect()
Copyright © 2015 The Apache Software Foundation. All rights reserved.