|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.aokell.lib.interf.PrimitiveExtItfManager
public class PrimitiveExtItfManager
A manager for external interfaces of primitive components.
Field Summary | |
---|---|
protected Component |
compctrlimpl
|
protected Object |
content
|
protected ComponentType |
type
|
Constructor Summary | |
---|---|
PrimitiveExtItfManager()
|
Method Summary | |
---|---|
protected Interface |
getFcInterface(InterfaceType it,
Component itfOwner,
Object content,
boolean isFcInternalInterface)
Get the Interface instance associated to the given interface type
for the given 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. |
protected Interface |
getProxyInterface(InterfaceType it,
Component itfOwner,
Object content,
boolean isFcInternalInterface,
boolean boundable)
Return an Interface instance for the given interface type. |
void |
initFc(Type type,
Component compctrlimpl,
Object content)
|
Interface[] |
registerFcControlInterface(InterfaceType[] its,
Object ctrl)
Register new control interfaces for a given controller. |
Interface |
registerFcInterface(String interfaceName)
Register a new collection Interface instance. |
void |
unregisterFcInterface(String interfaceName)
Unregister a collection Interface instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Component compctrlimpl
protected ComponentType type
protected Object content
Constructor Detail |
---|
public PrimitiveExtItfManager()
Method Detail |
---|
public void initFc(Type type, Component compctrlimpl, Object content)
initFc
in interface InterfaceManager
public Object getFcInterface(String interfaceName) throws NoSuchInterfaceException
Interface
corresponding to
the given name. The returned value is of type Object to be compatible
with the Component
interface.
getFcInterface
in interface InterfaceManager
NoSuchInterfaceException
public Object[] getFcInterfaces()
Interface
instances implemented by this
component. The returned values are of type Object to be compatible with
the Component
interface.
getFcInterfaces
in interface InterfaceManager
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 InterfaceManager
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 InterfaceManager
interfaceName
- the interface name (e.g. foo004)
NoSuchInterfaceException
- if there is no such collection interfacepublic Interface[] registerFcControlInterface(InterfaceType[] its, Object ctrl)
Factory
and the interface type corresponding to
Template
.
registerFcControlInterface
in interface InterfaceManager
its
- the interface typesctrl
- the controller
protected Interface getFcInterface(InterfaceType it, Component itfOwner, Object content, boolean isFcInternalInterface)
Interface
instance associated to the given interface type
for the given component.
protected final Interface getProxyInterface(InterfaceType it, Component itfOwner, Object content, boolean isFcInternalInterface, boolean boundable)
Interface
instance for the given interface type.
The returned instance implements both the Interface interface and the
Java interface specified in the given interface type. The instance is a
proxy generated with ASM when the fcinterface feature is set to asm.
it
- the interface typeitfOwner
- the component owning this interfacecontent
- the instance implementing the contentboundable
- true if the interface can be bound (e.g. client for a primitive)
false otherwise (e.g. server for a primitive)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |