If you want to instantiate an avalon component you must use/create an
Avalon container.
There are many but I don't understand why you don't use phoenix.

What are you trying to do?

If you want to extend James you should create your own avalon components
and use assembly.xml to wire your component to James' components and
viceversa.

Stefano

> I want to get the Instance of UsersFileRepository or UserRepository.
> So i have to create an Instance of class of James,
> And how to create a Instance of class James.
>   I write a test code,but I think there is something wrong with it.
>    
>      DefaultConfigurationBuilder builder=new DefaultConfigurationBuilder();
>    Configuration 
> conf=builder.buildFromFile("D:\\JAVA\\MailServer\\james-2.2.0\\apps\\james\\SAR-INF\\config.xml");
>    James j=new James();
>    j.configure(conf);
>      j.initialize();
>      j.getUserRepository(anyone);
>    
>   This short code doesn't work at all,plz give a sample,I hard to know how to 
> create it.
> thx!



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to