Skip to content

Instantly share code, notes, and snippets.

View ibaca's full-sized avatar
🐄
cowding

Ignacio Baca Moreno-Torres ibaca

🐄
cowding
View GitHub Profile
@ibaca
ibaca / BeanLocator.java
Created March 7, 2012 19:43 — forked from messo/BeanLocator.java
My EJB Bean
public class BeanLocator implements ServiceLocator {
@Override
public Object getInstance(Class<?> clazz) {
System.out.println(clazz);
if (clazz.equals(GroupManager.class)) {
return lookupBean(clazz, "GroupManager");
} else {
return null;
}