to.etc.domui.util.resources
Class ProductionClassResourceRef

java.lang.Object
  extended by to.etc.domui.util.resources.ProductionClassResourceRef
All Implemented Interfaces:
IModifyableResource, IResourceRef

public class ProductionClassResourceRef
extends java.lang.Object
implements IResourceRef, IModifyableResource

Classpath resource for PRODUCTION (non-debug) mode. This refers to a .classpath reference and is initialized only once.

Author:
Frits Jalvingh Created on Mar 15, 2010

Constructor Summary
ProductionClassResourceRef(java.lang.String rootpath)
           
 
Method Summary
 boolean exists()
          Return T if this resource actually exists.
 java.io.InputStream getInputStream()
          Returns the input stream for the resource.
 long getLastModified()
          This one only returns existence: it returns -1 if the resource does not exist and 1 if it does.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProductionClassResourceRef

public ProductionClassResourceRef(java.lang.String rootpath)
Method Detail

exists

public boolean exists()
Description copied from interface: IResourceRef
Return T if this resource actually exists.

Specified by:
exists in interface IResourceRef
Returns:

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.lang.Exception
Description copied from interface: IResourceRef
Returns the input stream for the resource. This will return a new stream for every call. It returns null if the resource does not exist.

Specified by:
getInputStream in interface IResourceRef
Returns:
Throws:
java.lang.Exception

getLastModified

public long getLastModified()
This one only returns existence: it returns -1 if the resource does not exist and 1 if it does.

Specified by:
getLastModified in interface IModifyableResource
Returns:
See Also:
IModifyableResource.getLastModified()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object