|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.aokell.lib.InterfaceImpl
org.objectweb.fractal.aokell.lib.control.component.ComponentImpl
public class ComponentImpl
Root class for implementations of the Component interface. This class contains common features shared by all classes implementing this interface.
Field Summary | |
---|---|
protected Component |
compctrl
|
protected InterfaceManager |
im
The interfaces managed by this component. |
Fields inherited from class org.objectweb.fractal.aokell.lib.InterfaceImpl |
---|
bc, fcContent |
Fields inherited from interface org.objectweb.fractal.aokell.lib.control.component.ComponentItf |
---|
NAME, TYPE |
Constructor Summary | |
---|---|
ComponentImpl()
|
Method Summary | |
---|---|
void |
addFcController(InterfaceType[] it,
Object ctrl)
Declare a new controller implemented by the component. |
void |
cloneFcCtrl(Component dst,
Object hints)
Clone the controller state from the current component to another one. |
Object |
getContentDesc()
|
Object |
getControllerDesc()
|
Object[] |
getFcControllers()
Return the array of control interfaces implemented by the component. |
Object |
getFcInterface(String interfaceName)
Return the instance implementing the Interface corresponding to
the given name. |
Object[] |
getFcInterfaces()
Return the array of Interface instances implemented by this
component. |
String |
getFcItfName()
|
Component |
getFcItfOwner()
|
Type |
getFcItfType()
|
Type |
getFcType()
|
void |
initFc(Type type,
Object controllerDesc,
Object contentDesc,
Object contentPart)
|
void |
initFcCtrl()
Initialize the controller. |
boolean |
isFcInternalItf()
|
Interface |
registerFcInterface(String interfaceName)
Register a new collection Interface instance. |
void |
setFcCompCtrl(Component compctrl)
Set the reference towards the component controller associated to this controller. |
void |
unregisterFcInterface(String interfaceName)
Unregister a collection Interface instance. |
Methods inherited from class org.objectweb.fractal.aokell.lib.InterfaceImpl |
---|
clone, init, lookupFc, setBC, setFcInternalItf, setFcItfImpl, setFcItfName, setFcItfOwner, setFcItfType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected InterfaceManager im
protected Component compctrl
Constructor Detail |
---|
public ComponentImpl()
Method Detail |
---|
public Object getFcInterface(String interfaceName) throws NoSuchInterfaceException
Interface
corresponding to
the given name. Whereas this is the case most of the time, it is not
mandatory for the returned value to be of type Interface
.
getFcInterface
in interface Component
NoSuchInterfaceException
public Object[] getFcInterfaces()
Interface
instances implemented by this
component. Whereas this is the case most of the time, it is not
mandatory for the returned values to be of type Interface
.
getFcInterfaces
in interface Component
public Type getFcType()
getFcType
in interface Component
public Object getControllerDesc()
getControllerDesc
in interface ComponentDescItf
public Object getContentDesc()
getContentDesc
in interface ComponentDescItf
public void initFc(Type type, Object controllerDesc, Object contentDesc, Object contentPart)
initFc
in interface ComponentItf
public Object[] getFcControllers()
getFcControllers
in interface ComponentItf
public void addFcController(InterfaceType[] it, Object ctrl)
addFcController
in interface ComponentItf
it
- the control interface types implemented by this controllerctrl
- the controller.
The controller (i.e. the instance of
Controller
)
with object-oriented membranes.
The proxy interface with componentized membranes.public Interface registerFcInterface(String interfaceName) throws NoSuchInterfaceException
Interface
instance.
The given name must start with an existing collection interface name
decalred in the component type.
registerFcInterface
in interface ComponentItf
interfaceName
- the interface name (e.g. foo004)
NoSuchInterfaceException
- if there is no such collection interfacepublic void unregisterFcInterface(String interfaceName) throws NoSuchInterfaceException
Interface
instance.
The given name must start with an existing collection interface name
decalred in the component type.
unregisterFcInterface
in interface ComponentItf
interfaceName
- the interface name (e.g. foo004)
NoSuchInterfaceException
- if there is no such collection interfacepublic String getFcItfName()
getFcItfName
in interface Interface
getFcItfName
in class InterfaceImpl
public Component getFcItfOwner()
getFcItfOwner
in interface Interface
getFcItfOwner
in class InterfaceImpl
public Type getFcItfType()
getFcItfType
in interface Interface
getFcItfType
in class InterfaceImpl
public boolean isFcInternalItf()
isFcInternalItf
in interface Interface
isFcInternalItf
in class InterfaceImpl
public void setFcCompCtrl(Component compctrl)
setFcCompCtrl
in interface Controller
compctrl
- the component controller associated with this controller
For instances of this class, compctrl and this are equals (the component
controller is associated with itself).public void initFcCtrl()
initFcCtrl
in interface Controller
public void cloneFcCtrl(Component dst, Object hints) throws CloneCtrlException
cloneFcCtrl
in interface Controller
dst
- the destination componenthints
- hints for performing the operation
CloneCtrlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |