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

src.samples.java.ex.WI_Sample Maven / Gradle / Ivy

Go to download

An auxiliary findbugs.sourceforge.net plugin for java bug detectors that fall outside the narrow scope of detectors to be packaged with the product itself.

There is a newer version: 7.6.8
Show newest version
package ex;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

public class WI_Sample extends Parent {
    @Autowired
    SingletonBean mySBean;

    @Autowired
    @Qualifier("special")
    SingletonBean myOtherSBean;

    @Autowired
    GenerifiedBean fpStringBean;

    @Autowired
    GenerifiedBean fpIntBean;

    public void foo() {
        MyBean b = new MyBean();
    }
}

class Parent {
    @Autowired
    SingletonBean sbean;

    @Autowired
    @Qualifier("special")
    SingletonBean pbean;
}

interface SingletonBean {

}

interface GenerifiedBean {
}

@Component
class MyBean {
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy