org.jasig.portal.channels.jsp
Class DeploymentSpec

java.lang.Object
  extended by org.jasig.portal.channels.jsp.DeploymentSpec

Deprecated. All IChannel implementations should be migrated to portlets

@Deprecated
public class DeploymentSpec
extends Object

This class represents a deployment specification file that holds information on what CAR resources have been extracted from CARs and placed into a classloader accessible location so that they are accessible via the web application's classloader. This is done so that JSPs included in CARs can access the classes that were included in the CAR. The format of entries is as follows:

 
  carCount: the number of cars having deployed resources
   
  car_N: the path to the car file for the Nth car entry.
   
  car_N_deployed: the date of extraction for resources of the Nth car
   
  some.resource.path=car_N: indicates a resource extracted for the Nth car
   
  file_some.resource.path: fully qualified path to extracted file
  
 

Author:
Mark Boyd

Method Summary
 void addDeploymentFor(String carFilePath, List resources)
          Deprecated. Adds deployment information about the passed-in CAR and its resources into the deployment specification file.
static DeploymentSpec getInstance()
          Deprecated.  
 long getTimeOfDeploymentForResource(String resourcePath)
          Deprecated. Returns the timestamp in milliseconds when the specified resource was deployed or -1 if the resource is not included in the list of resources deployed.
 boolean isDeployInfoAvailableFor(String resource)
          Deprecated. Determines if an entry for a resource is found in the deployment information file for jsp cars.
 List removeEntriesFor(String carFilePath)
          Deprecated. Removes path entries for resources extracted from the indicated CAR from the car jsp deployment specification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DeploymentSpec getInstance()
                                  throws PortalException
Deprecated. 
Throws:
PortalException

addDeploymentFor

public void addDeploymentFor(String carFilePath,
                             List resources)
                      throws PortalException
Deprecated. 
Adds deployment information about the passed-in CAR and its resources into the deployment specification file.

Parameters:
carFilePath -
resources -
Throws:
PortalException

removeEntriesFor

public List removeEntriesFor(String carFilePath)
Deprecated. 
Removes path entries for resources extracted from the indicated CAR from the car jsp deployment specification.

Parameters:
carFilePath -
Returns:
Throws:
PortalException

isDeployInfoAvailableFor

public boolean isDeployInfoAvailableFor(String resource)
Deprecated. 
Determines if an entry for a resource is found in the deployment information file for jsp cars.

Parameters:
classFilePath -
Returns:

getTimeOfDeploymentForResource

public long getTimeOfDeploymentForResource(String resourcePath)
                                    throws PortalException
Deprecated. 
Returns the timestamp in milliseconds when the specified resource was deployed or -1 if the resource is not included in the list of resources deployed.

Parameters:
classFilePath -
Returns:
Throws:
PortalException


Copyright © 2010 Jasig. All Rights Reserved.