|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.andromda.core.metafacade.MetafacadeImpls
public class MetafacadeImpls
Discovers all metafacade interfaces and implementation classes in each namespace registry. This class is then used to retrieve both the appropriate metafacade interface and/or metafacade implementation class based on one or the other.
| Constructor Summary | |
|---|---|
MetafacadeImpls()
|
|
| Method Summary | |
|---|---|
void |
discover(java.lang.String[] metafacadeModelNamespaces)
Discovers and loads all metafacade implementation classes and interfaces in each avaiable namespace registry into each given namespace in the modelTypeNamespaces list. |
java.lang.Class |
getMetafacadeClass(java.lang.String metafacadeImplClass)
Retrieves the metafacade class from the passed in metafacadeImplClass. |
java.lang.Class |
getMetafacadeImplClass(java.lang.String metafacadeClass)
Retrieves the metafacade implementation class from the passed in metafacadeClass. |
static MetafacadeImpls |
instance()
Returns the shared instance of this class. |
void |
setMetafacadeModelNamespace(java.lang.String metafacadeModelNamespace)
Sets the current model type to which this instance's metafacade class retrieval should apply. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetafacadeImpls()
| Method Detail |
|---|
public static MetafacadeImpls instance()
public void setMetafacadeModelNamespace(java.lang.String metafacadeModelNamespace)
metafacadeModelNamespace - the namespace that has the metafacade model implementation.public void discover(java.lang.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 java.lang.Class getMetafacadeClass(java.lang.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 java.lang.Class getMetafacadeImplClass(java.lang.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||