Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 991fe03e6f91dbb4039061849ec399a46e3285d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*********************************************************************************
 *
 * Copyright (c) 2010-2011, Sonatype, Inc.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors: 
 *
 *    Sonatype, Inc.
 *     
 ********************************************************************************/

package org.hudsonci.inject.injecto.internal;

import org.hudsonci.inject.injecto.InjectomaticAware;
import static org.hudsonci.inject.injecto.internal.InjectomaticAspectHelper.install;

/**
 * Install the {@link Injectomatic} component into {@link InjectomaticAware} objects after they have been created.
 * Only attempts injection for the most specific sub-type.
 *
 * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
 * @since 2.1.0
 */
public aspect InjectomaticAwareAspect
    extends InjectionAspectSupport
{
    after(Object obj) returning:
        this(obj) && initialization(InjectomaticAware+.new(..)) && mostSpecificSubTypeConstruction()
    {
        install(thisJoinPoint);
    }
}

Back to the top