|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaokell.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 |
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 AttributeController |
getAttributeController(Component c)
Returns the AttributeController interface of the given component. |
static BindingControllerItf |
getBindingController(Component c)
Returns the BindingControllerItf interface of the given component. |
static Object |
getContent(Component c)
|
static ContentController |
getContentController(Component c)
Returns the ContentController interface of the given component. |
static FactoryItf |
getFactory(Component c)
Returns the FactoryItf 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 SuperControllerItf |
getSuperController(Component c)
Returns the SuperControllerItf interface of the given 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 name. |
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 BindingControllerItf getBindingController(Component c)
BindingControllerItf
interface of the given component.
c
- a component.
BindingControllerItf
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 SuperControllerItf getSuperController(Component c)
SuperControllerItf
interface of the given component.
c
- a component.
SuperControllerItf
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 FactoryItf getFactory(Component c)
FactoryItf
interface of the given component.
c
- a component.
FactoryItf
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 Object getContent(Component c)
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 boolean isFcControllerInterfaceName(String itfName)
public static Interface followBindingsUpToLastInterface(Interface start)
public static String getFcFullyQualifiedName(Component comp)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |