org.ow2.jasmine.jade.reflex.util
Class Reflex

java.lang.Object
  extended by org.ow2.jasmine.jade.reflex.util.Reflex

public class Reflex
extends java.lang.Object

Provides utility methods to deal with reflexive components.

Author:
Fabienne Boyer

Field Summary
static java.lang.String controllersPrefix
          prefix for controllers names in Julia configuration file
 
Constructor Summary
Reflex()
           
 
Method Summary
static BindingNotificationController getBindingNotificationController(org.objectweb.fractal.api.Component component)
          Returns the BindingNotificationController interface of the given component.
static org.objectweb.fractal.api.Component getComponent(org.objectweb.fractal.api.Component component)
          Returns the Component interface of the given component.
static ContentNotificationController getContentNotificationController(org.objectweb.fractal.api.Component component)
          Returns the ContentNotificationController interface of the given component.
static java.lang.Object getDual(java.lang.Object o)
          Convert the reference
static org.objectweb.fractal.api.Component getDualComponent(org.objectweb.fractal.api.Component c)
          Get the dual componant of a given component
static org.objectweb.fractal.api.Interface getDualController(org.objectweb.fractal.api.Component comp, java.lang.String name)
          Get the dual controller of a given controller
static org.objectweb.fractal.api.Interface getDualInterface(org.objectweb.fractal.api.Interface itf)
          Get the dual interface of a given interface
static GenericAttributeNotificationController getGenericAttributeNotificationController(org.objectweb.fractal.api.Component component)
          Returns the GenericAttributeNotificationController interface of the given component.
static GenericFactoryNotification getGenericFactoryNotification(org.objectweb.fractal.api.Component component)
          Returns the GenericFactoryNotification interface of the given component.
static GenericInstallingFactoryNotification getGenericInstallingFactoryNotification(org.objectweb.fractal.api.Component component)
          Returns the GenericFactoryNotification interface of the given component.
static LifeCycleNotificationController getLifeCycleNotificationController(org.objectweb.fractal.api.Component component)
          Returns the LifeCycleNotificationController interface of the given component.
static NameNotificationController getNameNotificationController(org.objectweb.fractal.api.Component component)
          Returns the NameNotificationController interface of the given component.
static ReflexController getReflexController(org.objectweb.fractal.api.Component component)
          Returns the ReflexController interface of the given component.
static SpecificAttributeController getSpecificAttributeController(org.objectweb.fractal.api.Component component)
          Returns the SpecificAttributeController interface of the given component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controllersPrefix

public static java.lang.String controllersPrefix
prefix for controllers names in Julia configuration file

Constructor Detail

Reflex

public Reflex()
Method Detail

getReflexController

public static ReflexController getReflexController(org.objectweb.fractal.api.Component component)
                                            throws org.objectweb.fractal.api.NoSuchInterfaceException
Returns the ReflexController interface of the given component.

Parameters:
component - a component.
Returns:
the ReflexController interface of the given component.
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if there is no such interface.

getBindingNotificationController

public static BindingNotificationController getBindingNotificationController(org.objectweb.fractal.api.Component component)
                                                                      throws org.objectweb.fractal.api.NoSuchInterfaceException
Returns the BindingNotificationController interface of the given component.

Parameters:
component - a component.
Returns:
the BindingNotificationController interface of the given component.
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if there is no such interface.

getContentNotificationController

public static ContentNotificationController getContentNotificationController(org.objectweb.fractal.api.Component component)
                                                                      throws org.objectweb.fractal.api.NoSuchInterfaceException
Returns the ContentNotificationController interface of the given component.

Parameters:
component - a component.
Returns:
the ContentNotificationController interface of the given component.
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if there is no such interface.

getLifeCycleNotificationController

public static LifeCycleNotificationController getLifeCycleNotificationController(org.objectweb.fractal.api.Component component)
                                                                          throws org.objectweb.fractal.api.NoSuchInterfaceException
Returns the LifeCycleNotificationController interface of the given component.

Parameters:
component - a component.
Returns:
the LifeCycleNotificationController interface of the given component.
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if there is no such interface.

getNameNotificationController

public static NameNotificationController getNameNotificationController(org.objectweb.fractal.api.Component component)
                                                                throws org.objectweb.fractal.api.NoSuchInterfaceException
Returns the NameNotificationController interface of the given component.

Parameters:
component - a component.
Returns:
the NameNotificationController interface of the given component.
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if there is no such interface.

getGenericAttributeNotificationController

public static GenericAttributeNotificationController getGenericAttributeNotificationController(org.objectweb.fractal.api.Component component)
                                                                                        throws org.objectweb.fractal.api.NoSuchInterfaceException
Returns the GenericAttributeNotificationController interface of the given component.

Parameters:
component - a component.
Returns:
the GenericAttributeNotificationController interface of the given component.
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if there is no such interface.

getSpecificAttributeController

public static SpecificAttributeController getSpecificAttributeController(org.objectweb.fractal.api.Component component)
                                                                  throws org.objectweb.fractal.api.NoSuchInterfaceException
Returns the SpecificAttributeController interface of the given component.

Parameters:
component - a component.
Returns:
the SpecificAttributeController interface of the given component.
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if there is no such interface.

getGenericFactoryNotification

public static GenericFactoryNotification getGenericFactoryNotification(org.objectweb.fractal.api.Component component)
                                                                throws org.objectweb.fractal.api.NoSuchInterfaceException
Returns the GenericFactoryNotification interface of the given component.

Parameters:
component - a component.
Returns:
the GenericFactoryNotification interface of the given component.
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if there is no such interface.

getGenericInstallingFactoryNotification

public static GenericInstallingFactoryNotification getGenericInstallingFactoryNotification(org.objectweb.fractal.api.Component component)
                                                                                    throws org.objectweb.fractal.api.NoSuchInterfaceException
Returns the GenericFactoryNotification interface of the given component.

Parameters:
component - a component.
Returns:
the GenericFactoryNotification interface of the given component.
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if there is no such interface.

getComponent

public static org.objectweb.fractal.api.Component getComponent(org.objectweb.fractal.api.Component component)
                                                        throws org.objectweb.fractal.api.NoSuchInterfaceException
Returns the Component interface of the given component.

Parameters:
component - a component.
Returns:
the Component interface of the given component.
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if there is no such interface.

getDualComponent

public static org.objectweb.fractal.api.Component getDualComponent(org.objectweb.fractal.api.Component c)
                                                            throws org.objectweb.fractal.api.NoSuchInterfaceException
Get the dual componant of a given component

Parameters:
o - the component reference
Returns:
the dual componant reference null if the conversion is impossible
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException

getDualController

public static org.objectweb.fractal.api.Interface getDualController(org.objectweb.fractal.api.Component comp,
                                                                    java.lang.String name)
                                                             throws org.objectweb.fractal.api.NoSuchInterfaceException
Get the dual controller of a given controller

Parameters:
comp - the controller's component
name - the controller's interface name
Returns:
the dual controller reference null if the conversion is impossible
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException

getDualInterface

public static org.objectweb.fractal.api.Interface getDualInterface(org.objectweb.fractal.api.Interface itf)
                                                            throws org.objectweb.fractal.api.NoSuchInterfaceException
Get the dual interface of a given interface

Parameters:
i - the interface reference
Returns:
the dual interface reference null if the conversion is impossible
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException

getDual

public static java.lang.Object getDual(java.lang.Object o)
                                throws org.objectweb.fractal.api.NoSuchInterfaceException
Convert the reference

Parameters:
o - the ref to be converted
Returns:
the ref converted if necessary null if the conversion is impossible
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException


Copyright © 2008 OW2 Consortium. All Rights Reserved.