com.github.datalking.aop.EmptyTargetSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of play-ioc Show documentation
Show all versions of play-ioc Show documentation
simple ioc container with aop support.
The newest version!
package com.github.datalking.aop;
import java.io.Serializable;
/**
* @author yaoo on 4/18/18
*/
public class EmptyTargetSource implements TargetSource, Serializable {
private final Class> targetClass;
public static final EmptyTargetSource INSTANCE = new EmptyTargetSource(null);
public EmptyTargetSource(Class> targetClass) {
this.targetClass = targetClass;
}
@Override
public Class> getTargetClass() {
return this.targetClass;
}
@Override
public Object getTarget() {
return null;
}
@Override
public String toString() {
return "EmptyTargetSource{" +
"targetClass=" + targetClass +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy