Map<String, EJBInstanceProxy<?>> bindings = new TreeMap<String, EJBInstanceProxy<?>>();
Class<?> remoteHome = deployment.getHomeInterface();
if (remoteHome != null)
{
bindings.put(remoteHome.getName(), new EJBInstanceProxy(deployment, remoteHome));
}
Class<?> localHome = deployment.getLocalHomeInterface();
if (localHome != null)
{
bindings.put(localHome.getName(), new EJBInstanceProxy(deployment, remoteHome));
}
for (Class<?> businessLocal : deployment.getBusinessLocalInterfaces())
{
bindings.put(businessLocal.getName(), new EJBInstanceProxy(deployment, businessLocal));
}
for (Class<?> businessRemote : deployment.getBusinessRemoteInterfaces())
{
bindings.put(businessRemote.getName(), new EJBInstanceProxy(deployment, businessRemote));
}
return bindings;
}