Examples of Habitat


Examples of org.jvnet.hk2.component.Habitat

    public Object getContainer(Object info) {

        Object[] params = (Object[])info;
        String appName = (String)params[0];

        Habitat habitat = Globals.getDefaultHabitat();
        ApplicationRegistry reg = habitat.getComponent(ApplicationRegistry.class);
        ApplicationInfo appInfo = reg.get(appName);
        Application app = appInfo.getMetaData(Application.class);

        EjbDescriptor desc = app.getEjbByName((String)params[1]);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.