|
Log4j 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.psnc.expres.model.factory.ResourceTypeFactory
public class ResourceTypeFactory
ResourceTypeFactory
class - the Type Factory is used to get the list
of resource types. The type component describes the resource type name, id
and icons
Constructor Summary | |
---|---|
ResourceTypeFactory()
|
Method Summary | |
---|---|
static java.lang.ClassLoader |
getClassLoader()
Get value of field: classLoader |
static ResourceType |
getResourceType(int id)
Get the resource type by the given id. |
static ResourceType |
getResourceType(int id,
java.io.InputStream inStream)
Get the resource type by the given id |
static ResourceType |
getResourceType(int id,
java.lang.String filePath)
Get the resource type by the given id |
static java.util.List<ResourceType> |
getTypes(java.io.InputStream inStream)
Load a resource types from the given source |
static java.util.List<ResourceType> |
getTypes(java.lang.String filePath)
Load a resource types from the given source |
static void |
setClassLoader(java.lang.ClassLoader classLoader)
Set value of field: classLoader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceTypeFactory()
Method Detail |
---|
public static ResourceType getResourceType(int id) throws pl.psnc.vlab.exception.ResourceNotFoundException
id
- type identifier
pl.psnc.vlab.exception.ResourceNotFoundException
- thrown when resource type cannot be
foundpublic static ResourceType getResourceType(int id, java.lang.String filePath) throws pl.psnc.vlab.exception.ResourceNotFoundException
id
- type identifierfilePath
- path to the source file
ResourceNotFoundException
pl.psnc.vlab.exception.ResourceNotFoundException
- thrown when resource type cannot be
foundpublic static ResourceType getResourceType(int id, java.io.InputStream inStream) throws pl.psnc.vlab.exception.ResourceNotFoundException
id
- type identifierinStream
- path to the source file
ResourceNotFoundException
pl.psnc.vlab.exception.ResourceNotFoundException
- thrown when resource type cannot be
foundpublic static java.util.List<ResourceType> getTypes(java.lang.String filePath) throws pl.psnc.vlab.exception.ResourceNotFoundException
filePath
- path to the resource file
pl.psnc.vlab.exception.ResourceNotFoundException
- thrown when method failspublic static java.util.List<ResourceType> getTypes(java.io.InputStream inStream) throws pl.psnc.vlab.exception.ResourceNotFoundException
filePath
- path to the resource file
pl.psnc.vlab.exception.ResourceNotFoundException
- thrown when method failspublic static java.lang.ClassLoader getClassLoader()
public static void setClassLoader(java.lang.ClassLoader classLoader)
classLoader
- the classLoader to set
|
Log4j 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |