You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Vincent Bonamy <vi...@geomath.fr> on 2001/08/31 13:32:23 UTC

Registry.getEntry

Hello,

I try to use the
Registry.getEntry(regName, entryName)
but it returns to me null everytime!

I tried with
regName = "local-portlets.xreg"   ( or regName =
"$conf_jetspeed/local-portlets.xreg")
entryName="Geomath"

I have an entry in my ocal-portlets.xreg:
<portlet-entry name="Geomath"          ....            >
....
</portlet-entry>


What is wrong please?
Can you explain me ?

Thanks,
vincent.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Registry.getEntry

Posted by Raphaƫl Luta <ra...@networks.groupvu.com>.
Vincent Bonamy wrote:

> Hello,
> 
> I try to use the
> Registry.getEntry(regName, entryName)
> but it returns to me null everytime!
> 
> I tried with
> regName = "local-portlets.xreg"   ( or regName =
> "$conf_jetspeed/local-portlets.xreg")
> entryName="Geomath"
> 
> I have an entry in my ocal-portlets.xreg:
> <portlet-entry name="Geomath"          ....            >
> ....
> </portlet-entry>
> 
> 
> What is wrong please?
> Can you explain me ?
> 


As always, look at the code... Registry is used everywhere.

To answer directly your question

PortletEntry geomath = (PortletEntry)Registry.getEntry(Registry.PORTLET, "Geomath");

The regname parameter describes the Registry name which is related to the type
of object stored not to the implementation xreg file.

--
Raphael Luta - raphael.luta@networks.groupvu.com
Vivendi Universal Networks - Paris


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org