org.ofbiz.base.component
Class ComponentResourceHandler

java.lang.Object
  extended by org.ofbiz.base.component.ComponentResourceHandler
All Implemented Interfaces:
java.io.Serializable, ResourceHandler

public class ComponentResourceHandler
extends java.lang.Object
implements ResourceHandler

Contains resource information and provides for loading data

See Also:
Serialized Form

Field Summary
protected  java.lang.String componentName
           
protected  java.lang.String loaderName
           
protected  java.lang.String location
           
static java.lang.String module
           
 
Constructor Summary
ComponentResourceHandler(java.lang.String componentName, org.w3c.dom.Element element)
           
ComponentResourceHandler(java.lang.String componentName, java.lang.String loaderName, java.lang.String location)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 org.w3c.dom.Document getDocument()
           
 java.lang.String getFullLocation()
           
 java.lang.String getLoaderName()
           
 java.lang.String getLocation()
           
 java.io.InputStream getStream()
           
 java.net.URL getURL()
           
 int hashCode()
           
 boolean isFileResource()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

componentName

protected java.lang.String componentName

loaderName

protected java.lang.String loaderName

location

protected java.lang.String location
Constructor Detail

ComponentResourceHandler

public ComponentResourceHandler(java.lang.String componentName,
                                org.w3c.dom.Element element)

ComponentResourceHandler

public ComponentResourceHandler(java.lang.String componentName,
                                java.lang.String loaderName,
                                java.lang.String location)
Method Detail

getLoaderName

public java.lang.String getLoaderName()
Specified by:
getLoaderName in interface ResourceHandler

getLocation

public java.lang.String getLocation()
Specified by:
getLocation in interface ResourceHandler

getDocument

public org.w3c.dom.Document getDocument()
                                 throws GenericConfigException
Specified by:
getDocument in interface ResourceHandler
Throws:
GenericConfigException

getStream

public java.io.InputStream getStream()
                              throws GenericConfigException
Specified by:
getStream in interface ResourceHandler
Throws:
GenericConfigException

getURL

public java.net.URL getURL()
                    throws GenericConfigException
Specified by:
getURL in interface ResourceHandler
Throws:
GenericConfigException

isFileResource

public boolean isFileResource()
                       throws GenericConfigException
Specified by:
isFileResource in interface ResourceHandler
Throws:
GenericConfigException

getFullLocation

public java.lang.String getFullLocation()
                                 throws GenericConfigException
Specified by:
getFullLocation in interface ResourceHandler
Throws:
GenericConfigException

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

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