public class SiteFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PACKAGE_NAME
The default package where all the implementations reside.
|
static int |
NON_SINGLETON_LOAD |
static int |
SINGLETON_LOAD
Constants to specify how to load the class, as singleton or non singleton.
|
static String |
TEXT_IMPLEMENTING_CLASS
The name of the class that connects to an multi line Text based Site Catalog.
|
static String |
XML_IMPLEMENTING_CLASS
The name of the class that connects to an XML based Site Catalog.
|
Constructor and Description |
---|
SiteFactory() |
Modifier and Type | Method and Description |
---|---|
static PoolInfoProvider |
loadInstance(PegasusProperties properties,
boolean singleton)
Connects the interface with the site catalog implementation.
|
public static final String DEFAULT_PACKAGE_NAME
public static final int SINGLETON_LOAD
public static final int NON_SINGLETON_LOAD
public static final String XML_IMPLEMENTING_CLASS
public static final String TEXT_IMPLEMENTING_CLASS
public static PoolInfoProvider loadInstance(PegasusProperties properties, boolean singleton) throws SiteFactoryException
properties
- is an instance of properties to use.singleton
- indicates whether to load the singleton implementation
to Site Catalog backend or not. It should be set to false
for portals.SiteFactoryException
- that nests any error that
might occur during the instantiationDEFAULT_PACKAGE_NAME
Copyright © 2011 The University of Southern California. All Rights Reserved.