org.objectweb.fractal.julia
Interface ComponentInterface

All Superinterfaces:
Interface
All Known Implementing Classes:
BasicComponentInterface

public interface ComponentInterface
extends Interface

An extended Interface interface. This extended interface provides access to the object that implements a component interface.


Method Summary
 Object clone()
          Creates and returns a copy of this component interface.
 Object getFcItfImpl()
          Returns the object that implements this component interface.
 boolean hasFcInterceptor()
          Returns true if this interface has a permanently associated interceptor.
 void setFcItfImpl(Object impl)
          Sets the object that implements this component interface.
 void setFcItfName(String name)
          Sets the name of this component interface.
 void updateFcState()
          Update the internal state of this interface.
 
Methods inherited from interface org.objectweb.fractal.api.Interface
getFcItfName, getFcItfOwner, getFcItfType, isFcInternalItf
 

Method Detail

setFcItfName

void setFcItfName(String name)
Sets the name of this component interface.

Parameters:
name - the new name of this component interface.

getFcItfImpl

Object getFcItfImpl()
Returns the object that implements this component interface.

Returns:
the object that implements this component interface.
See Also:
setFcItfImpl

setFcItfImpl

void setFcItfImpl(Object impl)
Sets the object that implements this component interface.

Parameters:
impl - the object that implements this component interface.
See Also:
getFcItfImpl

hasFcInterceptor

boolean hasFcInterceptor()
Returns true if this interface has a permanently associated interceptor. Note that, due to the algorithm to compute shortcut links between components, the object that implements this component interface may temporarily be an interceptor object, even if this interface has no permanently associated interceptor. This method is therefore NOT equivalent to getFcItfImpl instanceof Interceptor (but it implies it).

Returns:
true if this interface has a permanently associated interceptor.

clone

Object clone()
Creates and returns a copy of this component interface.

Returns:
a copy of this component interface.

updateFcState

void updateFcState()
Update the internal state of this interface. Needed to be able to dynamically add or remove an interceptor.

Since:
2.5