Package org.apache.ofbiz.base.component
Class ComponentResourceHandler
- java.lang.Object
-
- org.apache.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
Fields Modifier and Type Field Description protected java.lang.String
componentName
protected java.lang.String
loaderName
protected java.lang.String
location
static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description ComponentResourceHandler(java.lang.String componentName, java.lang.String loaderName, java.lang.String location)
ComponentResourceHandler(java.lang.String componentName, org.w3c.dom.Element element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
-
-
-
Method Detail
-
getLoaderName
public java.lang.String getLoaderName()
- Specified by:
getLoaderName
in interfaceResourceHandler
-
getLocation
public java.lang.String getLocation()
- Specified by:
getLocation
in interfaceResourceHandler
-
getDocument
public org.w3c.dom.Document getDocument() throws GenericConfigException
- Specified by:
getDocument
in interfaceResourceHandler
- Throws:
GenericConfigException
-
getStream
public java.io.InputStream getStream() throws GenericConfigException
- Specified by:
getStream
in interfaceResourceHandler
- Throws:
GenericConfigException
-
getURL
public java.net.URL getURL() throws GenericConfigException
- Specified by:
getURL
in interfaceResourceHandler
- Throws:
GenericConfigException
-
isFileResource
public boolean isFileResource() throws GenericConfigException
- Specified by:
isFileResource
in interfaceResourceHandler
- Throws:
GenericConfigException
-
getFullLocation
public java.lang.String getFullLocation() throws GenericConfigException
- Specified by:
getFullLocation
in interfaceResourceHandler
- Throws:
GenericConfigException
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-