|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.media.mn8.mn8Loader
Constructor Summary | |
mn8Loader()
|
Method Summary | |
String |
findConcept(String name)
Tries to find the concept by looking first in the mem://registry/concepts/, then in env://registry/concepts/, then in the directories or URL specified in, the mem://registry/conceptspath/ and at the end env://registry/conceptspath. |
static ConceptDefinition |
getConceptDefinition(String concept)
|
static String |
getContent(String resourceURL)
Returns the content of resource specified by the URL given as parameter. |
static String |
getScriptName()
|
static JavaConcept |
instantiateConcept(String name)
|
static Concept |
instantiateConceptFromURL(String conceptURL)
|
static boolean |
isConceptAvailable(String conceptName)
Tries to find if the Concepted specified by the concept name is available to mn8. |
static void |
loadConcept(String name)
|
String |
loadConceptFromReader(Reader reader,
String name)
|
static String |
loadConceptFromURL(String conceptURL,
String name)
Loads a concept into the ConceptRegister . |
static void |
main(String[] args)
|
static String |
resolveClassName(String className)
|
static void |
setScriptName(String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public mn8Loader()
Method Detail |
public static void setScriptName(String name)
public static String getScriptName()
public static Concept instantiateConceptFromURL(String conceptURL) throws ConceptNotFoundException
ConceptNotFoundException
public static JavaConcept instantiateConcept(String name) throws ConceptNotFoundException
ConceptNotFoundException
public static void loadConcept(String name) throws ConceptNotFoundException
ConceptNotFoundException
public static ConceptDefinition getConceptDefinition(String concept)
public static boolean isConceptAvailable(String conceptName)
Just not to forget. All the JavaConcepts will be specified in a configuration file, so, searching for them should not be too dificult, if the concept is not there and it's not in the register either, that means that it might be an mn8 script and is probably located in the script path somewere.
conceptName
- The name of the concept;
public static String getContent(String resourceURL)
resourceURL
- The URL of the resource
public static String resolveClassName(String className)
public static String loadConceptFromURL(String conceptURL, String name) throws ConceptNotFoundException
ConceptRegister
.
Because the Java concepts are accessed through the registry where
it has a name asociated, through this method only the mn8 concepts
will be loaded.
ConceptNotFoundException
- If the concept is not found at the
specified location.public String loadConceptFromReader(Reader reader, String name)
public String findConcept(String name) throws ConceptNotFoundException
name
- The name of the concept (Concept Type)
ConceptNotFoundException
- if the concept was not foundpublic static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |