com.wewebu.ow.server.conf
Interface OwBaseInitializer

All Known Subinterfaces:
OwHistoryManagerContext, OwNetworkContext, OwRepositoryContext, OwRoleManagerContext
All Known Implementing Classes:
OwConfigurationInitialisingContextListener, OwInitialisingContextListener, OwMainAppContext, OwServletBaseInitializer, OwStandardRoleManagerInitialisingContextListener

public interface OwBaseInitializer

Base interface for application scope initializers.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com


Method Summary
 Object getApplicationAttribute(String key_p)
          get a attribute from the application scope
 String getBasePath()
          get the base path to the application
 URL getConfigURL(String strName_p)
          get the URL to the configuration file
 String getInitParameter(String strParamName_p)
          get a parameter from the web.xml config file
 InputStream getXMLConfigDoc(String strName_p)
          loads a XML Document either from local file, external file or from a JNDI context
 Object setApplicationAttribute(String key_p, Object object_p)
          set a attribute from the application scope
 

Method Detail

getBasePath

String getBasePath()
get the base path to the application

Returns:
String

getInitParameter

String getInitParameter(String strParamName_p)
get a parameter from the web.xml config file

Parameters:
strParamName_p - Name of the requested parameter
Returns:
parameter value, of null if not set.

getXMLConfigDoc

InputStream getXMLConfigDoc(String strName_p)
                            throws Exception
loads a XML Document either from local file, external file or from a JNDI context

Parameters:
strName_p - Name of the resource to look for
Returns:
OwXMLUtil wrapped DOM Node, or null if not found
Throws:
Exception

getConfigURL

URL getConfigURL(String strName_p)
                 throws Exception
get the URL to the configuration file

Parameters:
strName_p - Name of the resource to look for
Returns:
URL of the configuration file
Throws:
Exception

getApplicationAttribute

Object getApplicationAttribute(String key_p)
get a attribute from the application scope

Parameters:
key_p -
Returns:
an Object

setApplicationAttribute

Object setApplicationAttribute(String key_p,
                               Object object_p)
set a attribute from the application scope

Parameters:
key_p -
Returns:
the previous object


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.