public class MetafacadeImpls extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
(package private) static class |
MetafacadeImpls.MetafacadeClasses
Stores the metafacade interface and implementation classes.
|
Constructor and Description |
---|
MetafacadeImpls() |
Modifier and Type | Method and Description |
---|---|
void |
discover(String[] metafacadeModelNamespaces)
Discovers and loads all metafacade implementation classes and interfaces in each available namespace registry into
each given namespace in the
modelTypeNamespaces list. |
Class |
getMetafacadeClass(String metafacadeImplClass)
Retrieves the metafacade class from the passed in
metafacadeImplClass . |
Class |
getMetafacadeImplClass(String metafacadeClass)
Retrieves the metafacade implementation class from the passed in
metafacadeClass . |
static MetafacadeImpls |
instance()
Returns the shared instance of this class.
|
void |
setMetafacadeModelNamespace(String metafacadeModelNamespace)
Sets the current model type to which this instance's metafacade class retrieval
should apply.
|
public MetafacadeImpls()
public static MetafacadeImpls instance()
public void setMetafacadeModelNamespace(String metafacadeModelNamespace)
metafacadeModelNamespace
- the namespace that has the metafacade model implementation.public void discover(String[] metafacadeModelNamespaces)
modelTypeNamespaces
list.
Note that this method must be called before any metafacade implementation classes will be able to be retrieved
when calling getMetafacadeClass(String)
or getMetafacadeImplClass(String)
.metafacadeModelNamespaces
- a list of each namespace containing a metafacade model facade implementation.public Class getMetafacadeClass(String metafacadeImplClass)
metafacadeImplClass
. Will return a
MetafacadeImplsException if a metafacade class can not be found for the metafacadeImplClass
metafacadeImplClass
- the name of the metafacade implementation class.public Class getMetafacadeImplClass(String metafacadeClass)
metafacadeClass
. Will return a
MetafacadeImplsException if a metafacade implementation class can not be found for the
metafacadeClass
metafacadeClass
- the name of the metafacade class.Copyright © 2003–2014 AndroMDA.org. All rights reserved.