|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pluto.portlet.admin.util.PlutoAdminContext
A singleton factory that holds methods to get various data on the Pluto install such as the path to the Pluto home directory held within properties files. A HashMap cache is used to store the properties (as a Properties object) when they are first loaded.
Method Summary | |
static java.lang.String |
getContainerHome()
Finds home directory of the container that holds Pluto (usually Tomcat) |
static java.lang.String |
getDeploymentPath()
Accessor for the path to the portlet deployment directory (webapps in Tomcat container) |
static PlutoAdminContext |
getInstance()
|
java.lang.String |
getPageRegistryPath()
Accessor for the full path to the pageregistry.xml file using the getPlutoHome() method. |
java.lang.String |
getPlutoHome()
Uses properties in pluto-admin.properties to get the full path to the installed Pluto home directory, which in Tomcat is Pluto's webapps directory (usually 'pluto'). |
static java.lang.String |
getPlutoWebContext()
Accessor for the web context for Pluto (default=pluto) |
java.lang.String |
getPortletContextsPath()
Accessor for the full path to the portletcontexts.txt file |
java.lang.String |
getPortletEntityRegistryPath()
Accessor for the full path to the portletentityregistry.xml file using the getPlutoHome() method. |
static java.util.Properties |
getProperties()
|
static java.util.Properties |
getProperties(java.lang.String propFileName)
Returns the Properties object from a properties file that is in the classpath. |
static void |
parseDeploymentPaths(java.lang.String plutoHome)
Parses out paths from the Pluto Home directory sent in from PortletContext.getRealPath("") call in ControllerPortlet.init() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static PlutoAdminContext getInstance()
public java.lang.String getPageRegistryPath()
getPlutoHome()
public java.lang.String getPortletEntityRegistryPath()
getPlutoHome()
public java.lang.String getPlutoHome()
public static java.util.Properties getProperties(java.lang.String propFileName)
propFileName
- Name of the properties file.
java.lang.NullPointerException
- If the InputStream accessing the properties
file is null.public static java.util.Properties getProperties()
public java.lang.String getPortletContextsPath()
public static java.lang.String getContainerHome()
public static void parseDeploymentPaths(java.lang.String plutoHome)
plutoHome
- The _plutoHome to set.public static java.lang.String getDeploymentPath()
public static java.lang.String getPlutoWebContext()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |