com.sodius.mdw.core.model
Interface MetamodelConfiguration


public interface MetamodelConfiguration

The configuration from which the metamodel originates. This configuration is used to load metamodel related resources.

This interface is not intended to be implemented by clients.


Method Summary
 File getInstallLocation()
          Returns the location of the resource that declares the metamodel (metamodels.xml) or the external connector (connectors.xml).
 URL getResource(String name)
          Finds the resource with the given name, using the class loader used to load the metamodel.
 Class<?> loadClass(String name)
          Loads a metamodel related class, using the class loader used to load the metamodel.
 

Method Detail

loadClass

Class<?> loadClass(String name)
                   throws ClassNotFoundException
Loads a metamodel related class, using the class loader used to load the metamodel.

Parameters:
name - the name of the class.
Returns:
the resulting Class object;
Throws:
ClassNotFoundException - if the class was not found.
See Also:
ClassLoader.loadClass(java.lang.String)

getResource

URL getResource(String name)
Finds the resource with the given name, using the class loader used to load the metamodel.

Parameters:
name - the resource name.
Returns:
a URL object for reading the resource, or null if the resource could not be found or the invoker doesn't have adequate privileges to get the resource.
See Also:
ClassLoader.getResource(java.lang.String)

getInstallLocation

File getInstallLocation()
Returns the location of the resource that declares the metamodel (metamodels.xml) or the external connector (connectors.xml). This can either be a jar file or a directory, depending on the underlying framework configuration.

Returns:
the location of the resource that declares the metamodel or the external connector.