Example usage for org.springframework.ide.eclipse.beans.core.model IBeansProject getBeans

List of usage examples for org.springframework.ide.eclipse.beans.core.model IBeansProject getBeans

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.beans.core.model IBeansProject getBeans.

Prototype

Set<IBean> getBeans(String className);

Source Link

Document

Returns a list of beans which are using the given class as their bean class.

Usage

From source file:org.synyx.hades.eclipse.HadesUtils.java

/**
 * Returns all DAO beans for the given {@link IProject project}.
 * //  ww  w.  j  av a 2s  .  c  om
 * @param project
 * @return
 */
public static Set<IBean> getDaoBeansFor(IProject project) {

    IBeansProject beansProject = BeansCorePlugin.getModel().getProject(project);
    return beansProject == null ? new HashSet<IBean>() : beansProject.getBeans(getFactoryName());
}