protected void addComponent( final ComponentHandlerMetaData metaData )
throws IllegalArgumentException, Exception
{
// figure out Role
final String classname = metaData.getClassname();
final MetaInfoEntry metaEntry = m_metaManager.getMetaInfoForClassname( classname );
if ( null == metaEntry )
{
final String message = "No role defined for " + classname;
throw new IllegalArgumentException( message );
}
if ( DEFAULT_ENTRY.equals( metaData.getName() ) ||
SELECTOR_ENTRY.equals( metaData.getName() ) )
{
throw new IllegalArgumentException( "Using a reserved id name" + metaData.getName() );
}
Iterator it = metaEntry.getRoles();
// create a handler for the combo of Role+MetaData
final ComponentHandler handler =
getComponentHandler( metaEntry, metaData );
while ( it.hasNext() )