Class PortalSystem
- All Implemented Interfaces:
IURIResolver
The entry point into the Portal server.
PortalSystem is a singleton. It exposes the main(java.lang.String[])
method which initializes Portal. Initialization leverages the
DefaultPhaseProvider to initialize all of the IPhaseProvider
s registered in the system. Upon successful
initialization, all IComponentProvider
s will be available as well as their IComponent
s.
PortalSystem also defines many constants that can be passed into acquireURI(java.lang.String)
to find common portal resources.
This includes: TOPIC_ROOT
, FOLDER_ROOT
, FOLDER_SYSTEM
and many others.
PortalSystem also defines the various states that the system can be in. These vary from UNINITIALIZED_STATE
to SHUTDOWN_STATE
and a few in between.
PortalSystem also exposes all of the registered IComponentProvider
s. When requiring a specific IComponentProvider
invoke an API like getCommandProvider()
and cast it to the appropriate implementation, in this instance: ICommandManager
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The system is in a pre-initialized 'bootstrap' state.static final String
The current resource.static final String
The current resource's ancestor to the specified step (current.resource.ancestor.1=parent, current.resource.ancestor.2=grandparent).static final String
The current resource's parent.static final String
protected static final String
static final String
The content service folder.static final String
The directory service folder.static final String
The Help folder.static final String
The portlet instances folder.static final String
The XTypes Portlet folder.static final String
The public folder.static final String
The Root folder.static final String
The skins folder.static final String
The System folder.static final String
The templates folder.static final String
The templates management folder.static final String
The themes folder.static final String
The users folder.static final String
The xtype folder.static final String
The XTypes folder.static final String
static final int
The system is initializing and the MetaManager is available.protected static Map<String,
IComponentProvider> This is the map of managers that implement theIComponentProvider
interfaceprotected IPhaseProvider
This is what initializes us through the various phases of the product.protected static PortalSystem
A static singletonprotected int
protected List<IURIResolver>
A storage ofIURIResolver
protected IURIResolver[]
This is theIURIResolver
that always gets first crack at calls toacquireURI(java.lang.String)
protected IURIResolver[]
This is theIURIResolver
that always gets first crack at calls toacquireURI(java.lang.String)
protected static String
protected static final String
static final String
Where the persistent properties are stored.static final String
The key identifying persistent property storage.static final String
This is the phase provider that manages initializing the various phases of the product.static final String
protected static final String
static long
static final String
Identifies which PortalSystem to use.static final String
Alias for the default admin page portlet.static final String
Alias for the default page portlet.static final String
Alias for the directory portlet.static final String
Alias for the error report portlet.static final String
Alias for the folderview portlet.static final String
Alias for the head portlet.static final String
Alias for the leftnav (Content Manager) portlet.static final String
Alias for the locations portlet.static final String
Alias for the logout portlet.static final String
Alias for the permissions portlet.static final String
Alias for the properties portlet.static final String
Alias for the publish portlet.static final String
Alias for the streaming content viewer portlet.static final String
Alias for the titlebar portlet.static final String
Alias for the unipicker (Universal Picker) portlet.static final String
Alias for the user profile portlet.static final int
This is the point during initialization when noIMetaManager
is available yet, because the PortalSystem is still initializing.static final int
The system is ready and initialized.static final String
static final int
The system is shutting down.static final String
System property indicating IBM webMethods BPM Task Engine is enabled in library modestatic final String
The basic template.static final String
The "empty" template.static final String
The three column template.static final String
The Corporate Governance template.static final String
The Admin topic.static final String
The Help topic.static final String
The root topic.static final String
The System topic.static final int
The system hasn't begun initializing yet.static final String
Alias for the current user.static final String
Alias for the current user's scrapbook.static final String
Alias for the current user's home folder.static final String
Alias for the current user's profile.static final String
Alias for the current user's root folder (contains user home and scrapbook).static final String
Alias for the current user's saved search page.static final String
Alias for the current user's start page. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacquireURI
(String uri) Retrieve the provider-specific implementation ofIURI
based on the URI information.acquireURI
(String uri, boolean lookup) Retrieve the provider-specific implementation ofIURI
based on the URI information.protected abstract void
End an action to be tracked using the supplied perf tokenprotected abstract Object
actionInit
(String category, String actionName) Create action token to be used for perf monitoringprotected abstract void
actionStart
(Object token) Begin an action to be tracked using the supplied perf tokenstatic void
addComponentProvider
(String name, IComponentProvider cp) Updates the map that holds theIComponentProvider
s.void
addURIResolver
(IURIResolver newUriResolver) Allows theacquireURI(java.lang.String)
to be 'hooked' by other resolversstatic void
doStartup
(IPhaseProvider phaseProvider) Perform the portalSystem startup logicboolean
Checks if an items specified by objectURI exists in the systemstatic String
fixClientSideURI
(String uri) adds mws root context path to uristatic String
removes context path from uri to be processed by other MWS apis.static IComponentProvider
Deprecated.unsupportedstatic IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic <T extends IComponentProvider>
TgetComponentProvider
(Class<T> componentProviderInterface) Retrieves the registeredIComponentProvider
static <T extends IComponentProvider>
TgetComponentProvider
(Class<T> componentProviderInterface, String name) Retrieves the registeredIComponentProvider
static IComponentProvider
getComponentProvider
(String componentProvider) Deprecated.usegetComponentProvider(Class, String)
insteadstatic Map<String,
IComponentProvider> Gets the map of all registered by nameIComponentProvider
s.static ContainerMetaInfo
static IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic String
static IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic IPhaseProvider
static PortalSystem
Get the singleton instance of the PortalSystem.static IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic int
getState()
Get the state of the PortalSystem.static String
getSystemProperty
(String propertyName, String defaultValue) Retrieve a system property.static IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadGet the array of currently registeredIURIResolver
s.static IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic String
getVMID()
static IComponentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
insteadstatic IComponentProvider
Deprecated.unsupportedstatic boolean
Returns true if system is in development modeprotected void
init
(String configLocation, IPhaseProvider phaseProvider) The main startup for the PortalSystem.static void
static boolean
static boolean
static Boolean
static boolean
isReady()
static boolean
static String
localizeMessage
(Class<? extends ResourceBundle> resourceBundle, String messageKey, Object[] args, boolean includeMessageKeyPrefix) Helper method to retrieve a localized message from a resource bundleLook up an object in the system.static void
The arg identifies the portal.properties (configLocation) for example:java com.webmethods.portal.system.PortalSystem file:/c:/portalminder/config/portal.properties
protected abstract void
persistSystemProperty
(String key, String value) Persist the property value to the long term storageprotected abstract void
static void
removeComponentProvider
(IComponentProvider provider) Removes anIComponentProvider
from the internal map.static void
Removes anIComponentProvider
from the internal map.void
removeURIResolver
(IURIResolver newUriResolver) Allows theacquireURI(java.lang.String)
to be 'hooked' by other resolversresolveURIByPath
(String value) Attempts to resolve URI by given path to the object.static void
setState
(int state) Set the state of the PortalSystem.static void
setSystemProperty
(String key, String value) Set a system property.void
setURIResolverServices
(IURIResolver[] uriResolvers) Sets the set of IURIResolver instances that were registered as OSGi servicesvoid
shutdown()
static void
waitUntilReady
(Runnable runnable)
-
Field Details
-
PORTAL_PROPERTY
- See Also:
-
DEFAULT_PROPERTY
- See Also:
-
PERF_CAT_MANAGER
- See Also:
-
UNINITIALIZED_STATE
public static final int UNINITIALIZED_STATEThe system hasn't begun initializing yet.- See Also:
-
PRE_META_STATE
public static final int PRE_META_STATEThis is the point during initialization when noIMetaManager
is available yet, because the PortalSystem is still initializing.- See Also:
-
BOOTSTRAP_STATE
public static final int BOOTSTRAP_STATEThe system is in a pre-initialized 'bootstrap' state. This only occurs at one moment in the lifetime of a PortalSystem. This is the first time the PortalSystem ever starts, after theIMetaManager
is initialized, but prior to the bootstrap Phase being executed.- See Also:
-
INITIALIZING_STATE
public static final int INITIALIZING_STATEThe system is initializing and the MetaManager is available. This also assumes that we are not in the rareBOOTSTRAP_STATE
.- See Also:
-
READY_STATE
public static final int READY_STATEThe system is ready and initialized.- See Also:
-
SHUTDOWN_STATE
public static final int SHUTDOWN_STATEThe system is shutting down.- See Also:
-
PORTAL_SYSTEM_CLASS
Identifies which PortalSystem to use.- See Also:
-
PHASE_PROVIDER_CLASS
This is the phase provider that manages initializing the various phases of the product.- See Also:
-
PERSISTENT_SYSTEM_PROPERTIES_KEY
The key identifying persistent property storage.- See Also:
-
PERSISTENT_SYSTEM_PROPERTIES_DEFAULT
Where the persistent properties are stored.- See Also:
-
TOPIC_ROOT
The root topic.- See Also:
-
TOPIC_ADMIN
The Admin topic.- See Also:
-
TOPIC_SYSTEM
The System topic.- See Also:
-
TOPIC_HELP
The Help topic.- See Also:
-
FOLDER_ROOT
The Root folder.- See Also:
-
FOLDER_SYSTEM
The System folder.- See Also:
-
FOLDER_HELP
The Help folder.- See Also:
-
FOLDER_XTYPES
The XTypes folder.- See Also:
-
FOLDER_PORTLETS
The XTypes Portlet folder.- See Also:
-
FOLDER_PORTLET_INSTANCES
The portlet instances folder.- See Also:
-
FOLDER_TEMPLATES_MANAGEMENT
The templates management folder.- See Also:
-
FOLDER_USERS
The users folder.- See Also:
-
FOLDER_XTYPE
The xtype folder.- See Also:
-
FOLDER_THEMES
The themes folder.- See Also:
-
FOLDER_SKINS
The skins folder.- See Also:
-
FOLDER_DIRECTORY_SERVICE
The directory service folder.- See Also:
-
FOLDER_CONTENT_SERVICE
The content service folder.- See Also:
-
FOLDER_TEMPLATES
The templates folder.- See Also:
-
FOLDER_PUBLIC
The public folder.- See Also:
-
TEMPLATE_BASIC
The basic template.- See Also:
-
TEMPLATE_EMPTY
The "empty" template.- See Also:
-
TEMPLATE_THREE_COL
The three column template.- See Also:
-
TEMPLATE_USECORPGOV
The Corporate Governance template.- See Also:
-
USER_CURRENT
Alias for the current user. Only available if the webApplication is running.- See Also:
-
USER_CURRENT_ROOT
Alias for the current user's root folder (contains user home and scrapbook). Only available if the webApplication is running.- See Also:
-
USER_CURRENT_HOME
Alias for the current user's home folder. Only available if the webApplication is running.- See Also:
-
USER_CURRENT_START_PAGE
Alias for the current user's start page. Only available if the webApplication is running.- See Also:
-
USER_CURRENT_FAVORITES
Alias for the current user's scrapbook. Only available if the webApplication is running.- See Also:
-
USER_CURRENT_SAVED_SEARCHES
Alias for the current user's saved search page. Only available if the webApplication is running.- See Also:
-
USER_CURRENT_PROFILE
Alias for the current user's profile. Only available if the webApplication is running.- See Also:
-
CURRENT_RESOURCE
The current resource. This is only valid in the context of the webApplication.- See Also:
-
CURRENT_RESOURCE_TYPE
- See Also:
-
CURRENT_RESOURCE_PARENT
The current resource's parent. Note that some resources do not have parents. This is only valid in the context of the webApplication.- See Also:
-
CURRENT_RESOURCE_ANCESTOR
The current resource's ancestor to the specified step (current.resource.ancestor.1=parent, current.resource.ancestor.2=grandparent). This is only valid in the context of the webApplication.- See Also:
-
PORTLET_PERMISSIONS
Alias for the permissions portlet.- See Also:
-
PORTLET_DEFAULT_ADMIN_PAGE
Alias for the default admin page portlet.- See Also:
-
PORTLET_DEFAULT_PAGE
Alias for the default page portlet.- See Also:
-
PORTLET_HEAD
Alias for the head portlet.- See Also:
-
PORTLET_DIRECTORY
Alias for the directory portlet.- See Also:
-
PORTLET_FOLDERVIEW
Alias for the folderview portlet.- See Also:
-
PORTLET_LEFTNAV
Alias for the leftnav (Content Manager) portlet.- See Also:
-
PORTLET_LOCATIONS
Alias for the locations portlet.- See Also:
-
PORTLET_LOGOUT
Alias for the logout portlet.- See Also:
-
PORTLET_PROPERTIES
Alias for the properties portlet.- See Also:
-
PORTLET_PUBLISH
Alias for the publish portlet.- See Also:
-
PORTLET_TITLEBAR
Alias for the titlebar portlet.- See Also:
-
PORTLET_UNI_PICKER
Alias for the unipicker (Universal Picker) portlet.- See Also:
-
PORTLET_USER_PROFILE
Alias for the user profile portlet.- See Also:
-
PORTLET_STREAMING_CONTENT_VIEWER
Alias for the streaming content viewer portlet.- See Also:
-
PORTLET_ERROR_REPORT
Alias for the error report portlet.- See Also:
-
TASK_ENGINE_LIBRARY_MODE
System property indicating IBM webMethods BPM Task Engine is enabled in library mode- See Also:
-
SERVER_HOME
-
PORTAL_HOME
-
IN_MEMORY_INIT_MODE
-
m_portalSystem
A static singleton -
m_componentProviders
This is the map of managers that implement theIComponentProvider
interface -
m_componentProviderNames
-
m_uriResolverList
A storage ofIURIResolver
-
m_uriResolvers
This is theIURIResolver
that always gets first crack at calls toacquireURI(java.lang.String)
-
m_uriResolverServices
This is theIURIResolver
that always gets first crack at calls toacquireURI(java.lang.String)
-
m_phaseProvider
This is what initializes us through the various phases of the product. -
m_state
protected int m_state- See Also:
-
PORTAL_START_TIME
public static long PORTAL_START_TIME -
m_VMID
-
-
Constructor Details
-
PortalSystem
public PortalSystem()Default constructor used for reflection
-
-
Method Details
-
isContainer
public static boolean isContainer() -
getContainerConfig
-
getPortalSystem
Get the singleton instance of the PortalSystem.- Returns:
- the static instance of
PortalSystem
-
getComponentProviders
Gets the map of all registered by nameIComponentProvider
s. The map's keys are the names (java.lang.String) of theIComponentProvider
. The map's values are the instances ofIComponentProvider
. Typically, you should use the convenience functions likegetMechanicsProvider()
instead of retrieving the map directly.- Returns:
- a map of registered
IComponentProvider
s. - See Also:
-
getUriResolvers
Get the array of currently registeredIURIResolver
s.- Returns:
- the
m_uriResolvers
-
getComponentProvider
Deprecated.usegetComponentProvider(Class, String)
insteadRetrieves the registeredIComponentProvider
after which you should cast to the specific interface requested.- Parameters:
componentProvider
- the name of a registeredIComponentProvider
. It is highly recommended to use a named constant fromIComponentProvider
.- Returns:
- the
IComponentProvider
or null if not found
-
getComponentProvider
public static <T extends IComponentProvider> T getComponentProvider(Class<T> componentProviderInterface) Retrieves the registeredIComponentProvider
- Parameters:
componentProviderInterface
- the interface of a registeredIComponentProvider
.- Returns:
- the
IComponentProvider
or null if not found
-
getComponentProvider
public static <T extends IComponentProvider> T getComponentProvider(Class<T> componentProviderInterface, String name) Retrieves the registeredIComponentProvider
- Parameters:
componentProviderInterface
- the interface of a registeredIComponentProvider
.- Returns:
- the
IComponentProvider
or null if not found
-
addComponentProvider
Updates the map that holds theIComponentProvider
s. No other logic is performed.- Parameters:
name
- The name of the component providercp
- TheIComponentProvider
- See Also:
-
removeComponentProvider
Removes anIComponentProvider
from the internal map.- Parameters:
name
- The name of the component provider.- See Also:
-
removeComponentProvider
Removes anIComponentProvider
from the internal map.- Parameters:
provider
- The component provider.- See Also:
-
getDirectoryProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
getMetaProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
getMechanicsProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
getCommandProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
getBizPolicyProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
getContentProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
getCacheProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
getInstallProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
getPortletProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
getClassManager
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
getAuditManager
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
com.webmethods.portal.service.classmanager.IAuditManager
-
getBundleManager
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
com.webmethods.portal.service.bundle.BundleManager
-
getTaskProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead -
getWebAppProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
getWebServiceProvider
Deprecated.unsupported- See Also:
-
getAppServerProvider
Deprecated.unsupported -
getClusterProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
getVersionProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
getContextProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
getGlobalProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
getNoodleProvider
Deprecated.usegetComponentProvider(Class)
orgetComponentProvider(Class, String)
instead- See Also:
-
com.webmethods.portal.noodle.INdlComponentProvider
-
getPhaseProvider
- See Also:
-
localizeMessage
public static String localizeMessage(Class<? extends ResourceBundle> resourceBundle, String messageKey, Object[] args, boolean includeMessageKeyPrefix) Helper method to retrieve a localized message from a resource bundle- Parameters:
resourceBundle
- the bundle to get the message frommessageKey
- the key of the message to retrieveargs
- any args needed to complete the message (may be null)includeMessageKeyPrefix
- true to include the message key in the returned message, false otherwise- Returns:
- a localized message
-
getState
public static int getState()Get the state of the PortalSystem. -
setState
public static void setState(int state) Set the state of the PortalSystem.- Parameters:
state
- The state to set.- See Also:
-
lookup
Look up an object in the system. Determines which provider can handle this lookup request and delegates the call appropriately.- Parameters:
objectURI
- the URI to the object- Returns:
- a reference to the object in the system, or null if no such object exists
- Throws:
PortalException
-
exists
Checks if an items specified by objectURI exists in the system- Parameters:
objectURI
- the URI to of an object- Returns:
- Throws:
PortalException
-
acquireURI
Retrieve the provider-specific implementation ofIURI
based on the URI information.- Specified by:
acquireURI
in interfaceIURIResolver
- Parameters:
uri
- the String version of the URI- Returns:
- the provider specific implementation of
IURI
- Throws:
PortalException
- if the URI cannot be constructed or if the URI has an invalid syntax
-
acquireURI
Retrieve the provider-specific implementation ofIURI
based on the URI information.- Specified by:
acquireURI
in interfaceIURIResolver
- Parameters:
uri
- the String version of the URIlookup
- boolean flag to enable lookup.- Returns:
- the provider specific implementation of
IURI
- Throws:
PortalException
- if the URI cannot be constructed or if the URI has an invalid syntax
-
actionInit
Create action token to be used for perf monitoring- Parameters:
category
- the action categoryactionName
- the action name- Returns:
- the action token, or null if it could not be created
-
actionStart
Begin an action to be tracked using the supplied perf token- Parameters:
token
- the perf token returned fromactionInit(String, String)
-
actionEnd
End an action to be tracked using the supplied perf token- Parameters:
token
- the perf token returned fromactionInit(String, String)
-
resolveURIByPath
Attempts to resolve URI by given path to the object. Path could be in a form:
/alias
/alias/ContainerName/.../ResourceName- Parameters:
value
-- Returns:
- the provider specific implementation of
IURI
- Throws:
PortalException
- if the URI cannot be constructed or if the URI has an invalid syntax
-
addURIResolver
Allows theacquireURI(java.lang.String)
to be 'hooked' by other resolvers- Parameters:
newUriResolver
-- See Also:
-
removeURIResolver
Allows theacquireURI(java.lang.String)
to be 'hooked' by other resolvers- Parameters:
newUriResolver
-- See Also:
-
setURIResolverServices
Sets the set of IURIResolver instances that were registered as OSGi services- Parameters:
uriResolvers
- the array of IURIResolver services to use
-
main
The arg identifies the portal.properties (configLocation) for example:
java com.webmethods.portal.system.PortalSystem file:/c:/portalminder/config/portal.properties
- Parameters:
args
- portal.properties- Throws:
Exception
-
doStartup
Perform the portalSystem startup logic- Parameters:
phaseProvider
- (optional) existing phase provider to use instead of creating a new one- Throws:
Exception
-
initGuestUser
public static void initGuestUser() -
registerAsService
protected abstract void registerAsService() -
init
protected void init(String configLocation, IPhaseProvider phaseProvider) throws InitializationException The main startup for the PortalSystem. Instantiates the correct initialization manager and initializes.- Parameters:
configLocation
- The location of the bootstrap config stuff.- Throws:
InitializationException
-
shutdown
public void shutdown() -
getSystemProperty
Retrieve a system property. If it's not found then display a helpful message so people will know what they might have been looking for.- Parameters:
propertyName
- The system property name to find.defaultValue
- The default value to return if the property isn't found.- Returns:
- The value of the property if found, defaultValue otherwise
-
setSystemProperty
Set a system property. This will perform a couple of operations:1) It will set the system property:
System.setProperty(java.lang.String, java.lang.String)
2) It will persist the property to the registry 3) It will fire an event- Parameters:
key
- The name of the property to set.value
- The value to set the property to.- Throws:
IOException
- if it can't save to the persistent system properties file.
-
persistSystemProperty
Persist the property value to the long term storage- Parameters:
key
- system property keyvalue
- system property value- Throws:
IOException
-
inDevMode
public static boolean inDevMode()Returns true if system is in development mode- Returns:
- true if in development mode, false otherwise
-
inPreviewServerMode
public static boolean inPreviewServerMode() -
getVMID
-
waitUntilReady
-
isReady
public static boolean isReady() -
fixMWSURI
removes context path from uri to be processed by other MWS apis.- Parameters:
uri
-- Returns:
- String
-
fixClientSideURI
adds mws root context path to uri- Parameters:
uri
-- Returns:
- String
-
getContextPath
-
getComponentProviderNames
-
isLibraryMode
-
isTELibrary
public static boolean isTELibrary()
-