org.ow2.jasmine.jade.fractal.util
Class FractalUtil

java.lang.Object
  extended by org.ow2.jasmine.jade.fractal.util.FractalUtil

public class FractalUtil
extends java.lang.Object

Provides static methods to access controller interfaces, defined in Jade-Fractal, of Fractal components.

Author:
Julien Legrand

Constructor Summary
FractalUtil()
           
 
Method Summary
static org.objectweb.fractal.api.Component find(org.objectweb.fractal.api.Component c, java.lang.String sub)
          Deprecated.  
static org.objectweb.fractal.api.Interface[] getCmpItf(org.objectweb.fractal.api.Component cmp, java.lang.String signature)
          Deprecated.  
static GenericAttributeController getGenericAttributeController(org.objectweb.fractal.api.Component component)
          Returns the GenericAttributeController interface of the given component.
static org.objectweb.fractal.deployment.local.api.GenericInstallingFactory getGenericInstallingFactory(org.objectweb.fractal.api.Component component)
          Returns the GenericInstallingFactory interface of the given component.
static GenericInstallingFactoryContextController getGenericInstallingFactoryContextController(org.objectweb.fractal.api.Component component)
          Returns the GenericInstallingFactoryContextController interface of the given component.
static OSGiContextController getOSGiContextController(org.objectweb.fractal.api.Component component)
          Returns the OSGiContextController interface of the given component.
static ReverseBindingController getReverseBindingController(org.objectweb.fractal.api.Component component)
          Returns the ReverseBindingController interface of the given component.
static org.objectweb.fractal.api.Component getSubComponent(org.objectweb.fractal.api.Component sup, java.lang.String sub)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FractalUtil

public FractalUtil()
Method Detail

getGenericAttributeController

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

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

getOSGiContextController

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

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

getGenericInstallingFactoryContextController

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

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

getReverseBindingController

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

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

getGenericInstallingFactory

public static org.objectweb.fractal.deployment.local.api.GenericInstallingFactory getGenericInstallingFactory(org.objectweb.fractal.api.Component component)
                                                                                                       throws org.objectweb.fractal.api.NoSuchInterfaceException
Returns the GenericInstallingFactory interface of the given component.

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

getSubComponent

public static org.objectweb.fractal.api.Component getSubComponent(org.objectweb.fractal.api.Component sup,
                                                                  java.lang.String sub)
Deprecated. 

Parameters:
sup -
sub -
Returns:

getCmpItf

public static org.objectweb.fractal.api.Interface[] getCmpItf(org.objectweb.fractal.api.Component cmp,
                                                              java.lang.String signature)
Deprecated. 

Test if the component passed as parameter has a client itf whose signature correspond to the signature passed as parameter.

Parameters:
cmp - the component to be tested
signature - the signature of the itf
Returns:
an array of interface object having this signature (these interfaces are client/external) or null.

find

public static org.objectweb.fractal.api.Component find(org.objectweb.fractal.api.Component c,
                                                       java.lang.String sub)
Deprecated. 

utility method to find a subcomponent from a component root.

Parameters:
c - the component root
sub - the full path name of the component to find.
Returns:
the component or null if the cmp is not found. example : if C0 has 3 subcmp : C1,C2,C3 if C2 has 2 subcmp : C4,C5 find(C0,"C4/C5") will return the ref of C5


Copyright © 2008 OW2 Consortium. All Rights Reserved.