com.acciente.commons.loader
Class FileResourceDef

java.lang.Object
  extended by com.acciente.commons.loader.FileResourceDef
All Implemented Interfaces:
ResourceDef

public class FileResourceDef
extends Object
implements ResourceDef

An implementation of a ResourceDef backed by files.

Author:
Adinath Raveendra Raj
See Also:
ClassDef

Method Summary
 byte[] getContent()
          This method loads and returns the contents of this resource
 String getResourceName()
          Returns a fully qualified class name of the that this object manages
 boolean isModified()
          Returns true if the underlying source of the class data has changed since the last call to getData()
 void reload()
          Reloads the class byte code from the underlying source
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getResourceName

public String getResourceName()
Description copied from interface: ResourceDef
Returns a fully qualified class name of the that this object manages

Specified by:
getResourceName in interface ResourceDef
Returns:
a string class name

isModified

public boolean isModified()
Description copied from interface: ResourceDef
Returns true if the underlying source of the class data has changed since the last call to getData()

Specified by:
isModified in interface ResourceDef
Returns:
true if changed, false otherwise

reload

public void reload()
Description copied from interface: ResourceDef
Reloads the class byte code from the underlying source

Specified by:
reload in interface ResourceDef

getContent

public byte[] getContent()
Description copied from interface: ResourceDef
This method loads and returns the contents of this resource

Specified by:
getContent in interface ResourceDef
Returns:
the contents of the resource as a byte array


Copyright © 2008-2013 Acciente, LLC. All Rights Reserved.