站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

PortalWebAppFactory - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.server.deployment
Class PortalWebAppFactory

java.lang.Object
  extended byorg.jboss.portal.server.deployment.PortalWebAppFactory

public class PortalWebAppFactory
extends java.lang.Object

Creates the JBossWebApp according to the JBossWeb found.

Version:
$Revision: 5448 $
Author:
Julien Viet

Field Summary
private static java.lang.Class[] EMPTY_CLASS_ARRAY
           
private static java.lang.Object[] EMPTY_OBJECT_ARRAY
           
private static org.apache.log4j.Logger log
           
private  javax.management.MBeanServer server
           
private static int TOMCAT4
           
private static int TOMCAT5
           
private static int TOMCAT6
           
private static int UNKNOWN
           
 
Constructor Summary
PortalWebAppFactory(javax.management.MBeanServer server)
           
 
Method Summary
 PortalWebApp create(org.jboss.web.WebApplication webApp)
          Create a portal web application.
private static int getVersion()
          Recognize the jbossweb container and returns its version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log

EMPTY_CLASS_ARRAY

private static final java.lang.Class[] EMPTY_CLASS_ARRAY

EMPTY_OBJECT_ARRAY

private static final java.lang.Object[] EMPTY_OBJECT_ARRAY

UNKNOWN

private static final int UNKNOWN
See Also:
Constant Field Values

TOMCAT4

private static final int TOMCAT4
See Also:
Constant Field Values

TOMCAT5

private static final int TOMCAT5
See Also:
Constant Field Values

TOMCAT6

private static final int TOMCAT6
See Also:
Constant Field Values

server

private final javax.management.MBeanServer server
Constructor Detail

PortalWebAppFactory

public PortalWebAppFactory(javax.management.MBeanServer server)
Method Detail

create

public PortalWebApp create(org.jboss.web.WebApplication webApp)
                    throws CannotCreatePortletWebAppException
Create a portal web application.

Returns:
the portal web app or null if it cannot be created.
Throws:
CannotCreatePortletWebAppException

getVersion

private static int getVersion()
Recognize the jbossweb container and returns its version.