org.ow2.frascati.tinfi.api.control
Interface SCABasicIntentController

All Known Subinterfaces:
SCAIntentController

public interface SCABasicIntentController

Intent control interface for SCA components.

Since:
0.4
Author:
Lionel Seinturier

Field Summary
static java.lang.String NAME
          NAME of the intent controller.
 
Method Summary
 void addFcIntentHandler(IntentHandler handler)
          Add the specified intent handler on all business interfaces.
 void addFcIntentHandler(IntentHandler handler, InterfaceFilter filter)
          Add the specified intent handler on all interfaces, business or control, that match the specified interface filter.
 void addFcIntentHandler(IntentHandler handler, InterfaceMethodFilter filter)
          Add the specified intent handler on all interface methods, business or control, that match the specified filter.
 void addFcIntentHandler(IntentHandler handler, java.lang.String name)
          Add the specified intent handler on the specified interface.
 void addFcIntentHandler(IntentHandler handler, java.lang.String name, java.lang.reflect.Method method)
          Add the specified intent handler on the specified method of the specified interface.
 java.util.List<IntentHandler> listFcIntentHandler(java.lang.String name)
          Return the list of intent handlers associated with the specified interface.
 java.util.List<IntentHandler> listFcIntentHandler(java.lang.String name, java.lang.reflect.Method method)
          Return the list of intent handlers associated with the specified method of the specified interface.
 void removeFcIntentHandler(IntentHandler handler)
          Remove the specified intent handler on all interfaces, business and control, of the current component.
 void removeFcIntentHandler(IntentHandler handler, java.lang.String name)
          Remove the specified intent handler on the interface (service or reference) whose name is specified.
 void removeFcIntentHandler(IntentHandler handler, java.lang.String name, java.lang.reflect.Method method)
          Remove the specified intent handler on the method of the interface (service or reference) whose name is specified.
 

Field Detail

NAME

static final java.lang.String NAME
NAME of the intent controller.

See Also:
Constant Field Values
Method Detail

addFcIntentHandler

void addFcIntentHandler(IntentHandler handler)
                        throws IllegalLifeCycleException
Add the specified intent handler on all business interfaces.

Parameters:
handler - the intent handler
Throws:
IllegalLifeCycleException - if the component is not stopped

addFcIntentHandler

void addFcIntentHandler(IntentHandler handler,
                        InterfaceFilter filter)
                        throws IllegalLifeCycleException
Add the specified intent handler on all interfaces, business or control, that match the specified interface filter.

Parameters:
handler - the intent handler
filter - the interface filter
Throws:
IllegalLifeCycleException - if the component is not stopped
Since:
1.0

addFcIntentHandler

void addFcIntentHandler(IntentHandler handler,
                        InterfaceMethodFilter filter)
                        throws IllegalLifeCycleException
Add the specified intent handler on all interface methods, business or control, that match the specified filter.

Parameters:
handler - the intent handler
filter - the filter for interface methods
Throws:
IllegalLifeCycleException - if the component is not stopped
Since:
1.0

addFcIntentHandler

void addFcIntentHandler(IntentHandler handler,
                        java.lang.String name)
                        throws NoSuchInterfaceException,
                               IllegalLifeCycleException
Add the specified intent handler on the specified interface.

Parameters:
handler - the intent handler
name - the interface name
Throws:
NoSuchInterfaceException - if the interface does not exist
IllegalLifeCycleException - if the component is not stopped
Since:
0.4.4

addFcIntentHandler

void addFcIntentHandler(IntentHandler handler,
                        java.lang.String name,
                        java.lang.reflect.Method method)
                        throws NoSuchInterfaceException,
                               java.lang.NoSuchMethodException,
                               IllegalLifeCycleException
Add the specified intent handler on the specified method of the specified interface.

Parameters:
handler - the intent handler
name - the interface name
method - the method
Throws:
NoSuchInterfaceException - if the interface does not exist
java.lang.NoSuchMethodException - if the method does not exist
IllegalLifeCycleException - if the component is not stopped
Since:
1.0

listFcIntentHandler

java.util.List<IntentHandler> listFcIntentHandler(java.lang.String name)
                                                  throws NoSuchInterfaceException
Return the list of intent handlers associated with the specified interface.

Parameters:
name - the interface name
Throws:
NoSuchInterfaceException - if the interface does not exist
Since:
0.4.4

listFcIntentHandler

java.util.List<IntentHandler> listFcIntentHandler(java.lang.String name,
                                                  java.lang.reflect.Method method)
                                                  throws NoSuchInterfaceException,
                                                         java.lang.NoSuchMethodException
Return the list of intent handlers associated with the specified method of the specified interface.

Parameters:
name - the interface name
method - the method
Throws:
NoSuchInterfaceException - if the interface does not exist
java.lang.NoSuchMethodException - if the method does not exist
Since:
1.0

removeFcIntentHandler

void removeFcIntentHandler(IntentHandler handler)
                           throws IllegalLifeCycleException
Remove the specified intent handler on all interfaces, business and control, of the current component.

Parameters:
handler - the intent handler to remove
Throws:
IllegalLifeCycleException - if the component is not stopped
Since:
0.4.4

removeFcIntentHandler

void removeFcIntentHandler(IntentHandler handler,
                           java.lang.String name)
                           throws NoSuchInterfaceException,
                                  IllegalLifeCycleException
Remove the specified intent handler on the interface (service or reference) whose name is specified.

Parameters:
handler - the intent handler to remove
name - the interface name
Throws:
NoSuchInterfaceException - if the interface does not exist
IllegalLifeCycleException - if the component is not stopped
Since:
0.4.4

removeFcIntentHandler

void removeFcIntentHandler(IntentHandler handler,
                           java.lang.String name,
                           java.lang.reflect.Method method)
                           throws NoSuchInterfaceException,
                                  java.lang.NoSuchMethodException,
                                  IllegalLifeCycleException
Remove the specified intent handler on the method of the interface (service or reference) whose name is specified.

Parameters:
handler - the intent handler to remove
name - the interface name
method - the method
Throws:
NoSuchInterfaceException - if the interface does not exist
java.lang.NoSuchMethodException - if the method does not exist
IllegalLifeCycleException - if the component is not stopped
Since:
1.0


Copyright © 2007-2011. All Rights Reserved.