|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.fractal.juliak.FractalHelper
public class FractalHelper
This class contains helper methods to facilitate the use of the Fractal API.
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 Factory |
getFactory(Component c)
Returns the Factory 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 Object |
getFcInternalInterface(ContentController cc,
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 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)
|
static String |
toString(InterfaceType it)
|
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 Object getFcInternalInterface(ContentController cc, 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 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 Factory getFactory(Component c)
Factory
interface of the given component.
c
- a component.
Factory
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)
public static String toString(InterfaceType it)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |