avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liu jie <cn_liu...@yahoo.com.cn>
Subject [phoenix:]bug?
Date Thu, 17 Jul 2003 15:23:53 GMT
    
in
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor
   
    
    private synchronized void createComponents()
	throws Exception
    {
        try
        {
            for( int i = 0; i < m_entries.length; i++
)
            {
                final String className = m_entries[ i
].getClassName();
                final Class clazz = Class.forName(
className );
                final Object object = createObject(
className, clazz );
                m_entries[ i ].setObject( object );
            }
        }
        catch( final Exception e )
        {
            final String message =
                REZ.getString(
"embeddor.error.createComponents.failed" );
            getLogger().fatalError( message, e );
            throw new CascadingException( message, e
);
        }
    }

should be...
    private synchronized void createComponents()
	throws Exception
    {
        try
        {
            for( int i = 0; i < m_entries.length; i++
)
            {
                final String role = m_entries[ i
].getRole();
                final Class clazz = Class.forName(
role );
                final String className = m_entries[ i
].getClassName();
                final Object object = createObject(
className, clazz );
                m_entries[ i ].setObject( object );
            }
        }
        catch( final Exception e )
        {
            final String message =
                REZ.getString(
"embeddor.error.createComponents.failed" );
            getLogger().fatalError( message, e );
            throw new CascadingException( message, e
);
        }
    }


_________________________________________________________
Do You Yahoo!? 
国内电邮用户反垃圾调查拉开帷幕
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message