Make sure MRUMemoryStore extends Composable interface from avalon:

import org.apache.avalon.framework.component.Composable;

Vadim

> -----Original Message-----
> From: Gerhard Froehlich [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 16:21
> To: [EMAIL PROTECTED]
> Subject: [c2] component manager question
> 
> 
> Hi Team,
> I tried to get the FilesystemStore from the ComponentManager
> in my MRUMemoryStore class. I looked around in your source code
> to understand how to use the component manager (and the avalon
> project of course):
> 
> --schnipp--
> ...
>    /** the component manager */
>   protected ComponentManager manager;
> 
>   public MRUMemoryStore() {
>     this.jvm     = Runtime.getRuntime();
>     this.cache   = new HashMap();
>     this.mrulist = new LinkedList();
>   }
> 
>   public void compose(ComponentManager manager) throws ComponentException {
>     try {
>       this.manager = manager;
>       getLogger().debug("Looking up FilesystemStore" +
> FilesystemStore.ROLE);
>       this.fsstore = (Store)manager.lookup(Store.ROLE + "/Filesystem");
>     } catch(ComponentException e) {
>       getLogger().error("Error in MRUMemoryStore",e);
>     }
>   }
> ...
> -schnapp--
> 
> But this method is never executed. How would you solve this?
> 
> Cheers
> Gerhard
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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

Reply via email to