All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hudsonci.inject.injecto.internal.InjectomaticAwareAspect.aj Maven / Gradle / Ivy

There is a newer version: 3.3.3
Show newest version
/*********************************************************************************
 *
 * 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 Jason Dillon
 * @since 2.1.0
 */
public aspect InjectomaticAwareAspect
    extends InjectionAspectSupport
{
    after(Object obj) returning:
        this(obj) && initialization(InjectomaticAware+.new(..)) && mostSpecificSubTypeConstruction()
    {
        install(thisJoinPoint);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy