com.logicommerce.sdktest.PluginInjector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdktest Show documentation
Show all versions of sdktest Show documentation
Logicommerce SDK Testing tools for Logicommerce plugins.
package com.logicommerce.sdktest;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import com.logicommerce.sdk.Aggregate;
import com.logicommerce.sdk.Initiator;
import com.logicommerce.sdk.Resource;
import com.logicommerce.utilities.Injector;
public class PluginInjector extends Injector {
@Override
protected boolean isInjectable(Field field) {
return field.isAnnotationPresent(Resource.class) || field.isAnnotationPresent(Aggregate.class);
}
@Override
protected boolean hasPostConstruct(Method method) {
return method.isAnnotationPresent(Initiator.class);
}
@Override
protected boolean isRequestScope(Class> clazz) {
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy