cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Optional Components
Date Fri, 11 Jan 2002 17:18:08 GMT
If you want to add functionality to existing core components (such as
JaxpParser and TraxTransformer), please take advantage of the "hasComponent"
method on the ComponentManager before requesting the Component.

I fixed the unnecessary requirement of the Deli jar for runtime systems
by changing part of the compose method like this:

void compose(ComponentManager manager)
{
     // ... skip other stuff

     if (manager.hasComponent(Deli.ROLE))
     {
         this.deli = (Deli) manager.lookup(Deli.ROLE);
     }
}


This also allows the entry to stay in the RoleManager.

-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin


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


Mime
View raw message