|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.adl.BasicParser
Default implementation of the Parser
interface.
Field Summary | |
protected GenericFactory |
genericFactory
The factory used to create the component templates. |
protected Loader |
loader
The loader used to load resolved type and template definitions. |
protected LoggerFactory |
loggerFactory
The optional logger factory used to get a logger for this component. |
protected TypeFactory |
typeFactory
The factory used to create the component types. |
Constructor Summary | |
BasicParser()
|
Method Summary | |
void |
bindFc(String clientItfName,
Object serverItf)
Binds the client interface whose name is given to a server interface. |
String[] |
listFc()
Returns the names of the client interfaces of the component to which this interface belongs. |
Component |
loadTemplate(String name,
boolean template)
Loads the template component whose name is given. |
ComponentType |
loadType(String name)
Loads the component type whose name is given. |
Object |
lookupFc(String clientItfName)
Returns the interface to which the given client interface is bound. |
void |
registerExternalComponent(String name,
Component component)
Registers an external component under the given name. |
void |
unbindFc(String clientItfName)
Unbinds the given client interface. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Loader loader
protected TypeFactory typeFactory
protected GenericFactory genericFactory
protected LoggerFactory loggerFactory
Constructor Detail |
public BasicParser()
Method Detail |
public String[] listFc()
BindingController
listFc
in interface BindingController
public Object lookupFc(String clientItfName)
BindingController
bindFc
).
lookupFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.
public void bindFc(String clientItfName, Object serverItf)
BindingController
bindFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.serverItf
- a server interface.public void unbindFc(String clientItfName)
BindingController
unbindFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.public ComponentType loadType(String name) throws ParserException
Parser
loadType
in interface Parser
name
- a component type name.
ParserException
- if the component type definition cannot be loaded,
if it is invalid, or if the corresponding component type object cannot
be created.public Component loadTemplate(String name, boolean template) throws ParserException
Parser
loadTemplate
in interface Parser
name
- a template name.template
- true to return a template component,
false to return directly the instantiated component.
ParserException
- if the template definition cannot be loaded, if it
is invalid, or if the corresponding template component cannot be
created.public void registerExternalComponent(String name, Component component)
Parser
registerExternalComponent
in interface Parser
name
- the name of the external component.component
- an already instantiated component.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |