}
private ResourceLocator getResourceLocator()
throws Exception
{
final DefaultResourceLocator locator = new DefaultResourceLocator();
locator.put( Embeddor.class.getName(), this );
for( int i = 0; i < m_entries.length; i++ )
{
final String role = m_entries[ i ].getRole();
if( null == role )
{
continue;
}
final Object component = getEmbeddorComponent( role );
if( null != component )
{
locator.put( role, component );
}
}
locator.put( File.class.getName() + "/home", m_loomHome );
locator.put( ClassLoader.class.getName() + "/common",
m_commonClassLoader );
locator.put( ClassLoader.class.getName() + "/container",
m_containerClassLoader );
return locator;
}