|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.fractal.adl.DelegatingLoader
A Loader that delegates parts of its work to another Loader.
| Field Summary | |
protected Loader |
delegate
The Loader to which this loader can delegate work. |
protected Logger |
logger
The logger used to log messages. |
protected LoggerFactory |
loggerFactory
The optional logger factory used to get a logger for this component. |
| Constructor Summary | |
DelegatingLoader()
|
|
| Method Summary | |
void |
bindFc(String clientItfName,
Object serverItf)
Binds the client interface whose name is given to a server interface. |
protected abstract XMLElement |
handleTemplateDescriptor(String name,
XMLElement desc)
Handles a template descriptor that has just been loaded by the delegate. |
protected abstract XMLElement |
handleTypeDescriptor(String name,
XMLElement desc)
Handles a type descriptor that has just been loaded by the delegate. |
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 Loader delegate
Loader to which this loader can delegate work.
protected LoggerFactory loggerFactory
protected Logger logger
| Constructor Detail |
public DelegatingLoader()
| Method Detail |
public String[] listFc()
BindingController
listFc in interface BindingControllerpublic Object lookupFc(String clientItfName)
BindingControllerbindFc).
lookupFc in interface BindingControllerclientItfName - 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 BindingControllerclientItfName - 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 BindingControllerclientItfName - 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 Loadername - 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 Loadername - the name of a component template.
ParserException - if the component template can not be found or is
invalid.
protected abstract XMLElement handleTypeDescriptor(String name,
XMLElement desc)
throws ParserException
delegate.
name - the name of the type descriptor.desc - a type descriptor.
ParserException - if the type descriptor is invalid.
protected abstract XMLElement handleTemplateDescriptor(String name,
XMLElement desc)
throws ParserException
delegate.
name - the name of the template descriptor.desc - a template descriptor.
ParserException - if the template descriptor is invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||