You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Berin Loritsch <bl...@apache.org> on 2002/01/11 18:18:08 UTC

Optional Components

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