org.hudsonci.inject.injecto.internal.InjectomaticAwareAspect.aj Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hudson-inject Show documentation
Show all versions of hudson-inject Show documentation
Contains the strategy to wire up JSR-330 components in Hudson.
/*********************************************************************************
*
* 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