* Register embeddor and it's components to <code>SystemManager</code>.
*/
private void registerComponents()
throws Exception
{
final SystemManager systemManager =
(SystemManager)getServiceManager().lookup( SystemManager.ROLE );
final SystemManager componentManager =
systemManager.getSubContext( null, "component" );
componentManager.register( ManagementRegistration.EMBEDDOR.getName(),
this,
ManagementRegistration.EMBEDDOR.getInterfaces() );
for( int i = 0; i < m_entries.length; i++ )
{
final ManagementRegistration registration =
ManagementRegistration.getManagementInfoForRole( m_entries[ i ].getRole() );
if( null != registration )
{
componentManager.register( registration.getName(),
m_entries[ i ].getObject(),
registration.getInterfaces() );
}
}
}