org.apache.jetspeed.services
Class PortletFactory

java.lang.Object
  extended byorg.apache.jetspeed.services.PortletFactory

public class PortletFactory
extends java.lang.Object

Static wrapper around the PortletFactoryService

Version:
$Id: PortletFactory.java,v 1.5 2005/03/21 18:21:43 sgala Exp $
Author:
Raphaël Luta

Constructor Summary
PortletFactory()
           
 
Method Summary
static Portlet getPortlet(Entry entry)
          Given a PSML Entry return an instanciated Portlet.
static Portlet getPortlet(java.lang.String name, java.lang.String id)
          Given a Portlet registry entry name, instanciate it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletFactory

public PortletFactory()
Method Detail

getPortlet

public static Portlet getPortlet(Entry entry)
                          throws PortletException
Given a PSML Entry return an instanciated Portlet.

Parameters:
entry - a PSML Entry describing a portlet
Returns:
an instanciated portlet corresponding to this entry
Throws:
PortletException

getPortlet

public static Portlet getPortlet(java.lang.String name,
                                 java.lang.String id)
                          throws PortletException
Given a Portlet registry entry name, instanciate it

Parameters:
name - the name of a portlet in the registry
Returns:
an instanciated portlet corresponding to this entry
Throws:
PortletException


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.