|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.adl.BasicLoader
A Loader
that loads type and template definitions from the
class path. This loader loads a definition named 'foo.bar.abc' by looking for
a file foo/bar/abc.fractal in the resources of the class loader of
this class (with the getResourceAsStream
method). If such a file is found, this loader parses the
XML element it contains, which should be name 'foo.bar.abc', and returns it.
Field Summary | |
protected LoggerFactory |
loggerFactory
The optional logger factory used to get a logger for this component. |
Constructor Summary | |
BasicLoader()
|
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. |
XMLElement |
loadTemplateDescriptor(String name)
Loads the template definition whose name is given. |
XMLElement |
loadTypeDescriptor(String name)
Loads the type definition whose name is given. |
Object |
lookupFc(String clientItfName)
Returns the interface to which the given client interface is bound. |
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 LoggerFactory loggerFactory
Constructor Detail |
public BasicLoader()
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 XMLElement loadTypeDescriptor(String name) throws ParserException
Loader
loadTypeDescriptor
in interface Loader
name
- the name of a component type.
ParserException
- if the type definition can not be found or is
invalid.public XMLElement loadTemplateDescriptor(String name) throws ParserException
Loader
loadTemplateDescriptor
in interface Loader
name
- the name of a component template.
ParserException
- if the component template can not be found or is
invalid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |