com.acciente.commons.loader
Interface ResourceDef

All Known Implementing Classes:
FileResourceDef

public interface ResourceDef

This interface abstracts access to resource to be accessed via the classloader

Author:
Adinath Raveendra Raj

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
 

Method Detail

getResourceName

String getResourceName()
Returns a fully qualified class name of the that this object manages

Returns:
a string class name

isModified

boolean isModified()
Returns true if the underlying source of the class data has changed since the last call to getData()

Returns:
true if changed, false otherwise

reload

void reload()
Reloads the class byte code from the underlying source


getContent

byte[] getContent()
This method loads and returns the contents of this resource

Returns:
the contents of the resource as a byte array


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