Gianugo,

Unfortunately I had to undo your previous change to the getScheme()
method. This method is used by the SourceResolverImpl class to select
the SourcFactory to release() the Source to. Therefor is has to return
the component hint for the factory.

Was there some specific you needed this change for?

Unico

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: dinsdag 17 februari 2004 18:19
> To: [EMAIL PROTECTED]
> Subject: cvs commit: 
> cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/compon
> ents/source/impl RepositorySourceFactory.java RepositorySource.java
> 
> unico       2004/02/17 09:19:26
> 
>   Modified:    
> src/blocks/repository/java/org/apache/cocoon/components/source/impl
>                         RepositorySourceFactory.java 
> RepositorySource.java
>   Log:
>   support eventcaching; 
> 
>   undo previous change in getScheme():
> 
>   unfortunately getScheme() *must* always return the factory name. 
> 
>   This is because the source resolver selects the 
> SourceFactory to release the
> 
>   source to based on that value...
>   
>   Revision  Changes    Path
>   1.4       +44 -4     
> cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/compon
> ents/source/impl/RepositorySourceFactory.java
> 

<snip/>

>   1.5       +74 -38    
> cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/compon
> ents/source/impl/RepositorySource.java
>   
>   Index: RepositorySource.java
>   ===================================================================
>   RCS file: 
> /home/cvs/cocoon-2.1/src/blocks/repository/java/org/apache/coc
> oon/components/source/impl/RepositorySource.java,v
>   retrieving revision 1.4
>   retrieving revision 1.5
>   diff -u -r1.4 -r1.5
>   --- RepositorySource.java   16 Feb 2004 16:03:09 -0000      1.4
>   +++ RepositorySource.java   17 Feb 2004 17:19:26 -0000      1.5

<snip/>

>        public String getScheme() {
>   -        return m_prefix + ":" + m_delegate.getScheme();
>   +        return m_prefix;
>        }
>        

<snip/>

Reply via email to