|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.aokell.lib.util.FractalHelper
public class FractalHelper
Helper class that wraps calls to o.o.f.a.Fractal and that throws runtime exception instead of checked exceptions. Various other utility methods.
Constructor Summary | |
---|---|
FractalHelper()
|
Method Summary | |
---|---|
static void |
addAllSubComponents(Component c,
List l)
Add all sub-components of the given component to the list. |
static void |
bindFc(BindingController bc,
String itfName,
Object dstItf)
Bind the given destination interface to the given client interface name. |
static Interface |
followBindingsUpToLastInterface(Interface start)
Follow bindings and return the interface associated to the component located at the end of the binding chain. |
static Component[] |
getAllSubComponents(Component c)
Return all sub-components of the given component. |
static AttributeController |
getAttributeController(Component c)
Returns the AttributeController interface of the given component. |
static BindingController |
getBindingController(Component c)
Returns the BindingController interface of the given component. |
static Object |
getContent(Component c)
|
static ContentController |
getContentController(Component c)
Returns the ContentController interface of the given component. |
static ContentControllerItf |
getContentControllerItf(Component c)
Returns the ContentControllerItf interface of the given component. |
static FactoryDef |
getFactory(Component c)
Returns the FactoryDef interface of the given component. |
static String |
getFcFullyQualifiedName(Component comp)
Return the fully-qualified name of a component, i.e. a slash-separated string of names reflecting the hierarchy of nested components. |
static Object |
getFcInterface(Component c,
String itfName)
|
static GenericFactory |
getGenericFactory(Component c)
Returns the GenericFactory interface of the given component. |
static LifeCycleController |
getLifeCycleController(Component c)
Returns the LifeCycleController interface of the given component. |
static NameController |
getNameController(Component c)
Returns the NameController interface of the given component. |
static org.objectweb.fractal.julia.control.content.SuperControllerNotifier |
getSuperController(Component c)
Returns the SuperControllerNotifier interface of the given
component. |
static Component |
getTopMostComponent(Component c)
Traverse the super-hierarchy to return the root component. |
static TypeFactory |
getTypeFactory(Component c)
Returns the TypeFactory interface of the given component. |
static boolean |
isFcControllerInterfaceName(String itfName)
Return true if the specified name corresponds to the name of a Fractal controller interface. |
static boolean |
isFcControllerMethodName(String methName)
Return true if the specified name corresponds to the name of a Fractal control method. |
static boolean |
isFcImplementableInterface(String itfName)
Return true if the specified name corresponds to the name of an interface which should be implemented by a content class. |
static Object |
lookupFc(BindingController bc,
String itfName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FractalHelper()
Method Detail |
---|
public static Object getFcInterface(Component c, String itfName)
public static AttributeController getAttributeController(Component c)
AttributeController
interface of the given component.
c
- a component.
AttributeController
interface of the given component.public static BindingController getBindingController(Component c)
BindingController
interface of the given component.
c
- a component.
BindingController
interface of the given component.public static ContentController getContentController(Component c)
ContentController
interface of the given component.
c
- a component.
ContentController
interface of the given component.public static ContentControllerItf getContentControllerItf(Component c)
ContentControllerItf
interface of the given component.
c
- a component.
ContentControllerItf
interface of the given component.public static org.objectweb.fractal.julia.control.content.SuperControllerNotifier getSuperController(Component c)
SuperControllerNotifier
interface of the given
component.
c
- a component.
SuperControllerNotifier
interface of the given component.public static NameController getNameController(Component c)
NameController
interface of the given component.
c
- a component.
NameController
interface of the given component.public static LifeCycleController getLifeCycleController(Component c)
LifeCycleController
interface of the given component.
c
- a component.
LifeCycleController
interface of the given component.
NoSuchInterfaceException
- if there is no such interface.public static FactoryDef getFactory(Component c)
FactoryDef
interface of the given component.
c
- a component.
FactoryDef
interface of the given component.public static GenericFactory getGenericFactory(Component c)
GenericFactory
interface of the given component.
c
- a component.
GenericFactory
interface of the given component.public static TypeFactory getTypeFactory(Component c)
TypeFactory
interface of the given component.
c
- a component.
TypeFactory
interface of the given component.public static void bindFc(BindingController bc, String itfName, Object dstItf)
bc
- the binding controlleritfName
- the client interface namedstItf
- the destination interfacepublic static Object lookupFc(BindingController bc, String itfName)
public static Component[] getAllSubComponents(Component c)
public static void addAllSubComponents(Component c, List l)
public static Interface followBindingsUpToLastInterface(Interface start)
public static Object getContent(Component c)
public static boolean isFcControllerInterfaceName(String itfName)
public static boolean isFcControllerMethodName(String methName)
public static boolean isFcImplementableInterface(String itfName)
public static String getFcFullyQualifiedName(Component comp)
public static Component getTopMostComponent(Component c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |