|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.factories.JavaFactory
public class JavaFactory
This class implements the FlexFactory interface to constructs Flex messaging components. The JavaFactory uses the class name, specified as the source attribute to determine the class for instances. The scope attribute can be one of session, application or request to determine its lifecycle. If you use application or session, you can specify the optional attribute-id parameter to control the name of the key for storing the component. Two destinations using the same attribute-id will use the same component. The component is stored in the ServletContext (for application scoped components) and in the session (for session scoped components) so you can use these components in your JSP as well.
| Field Summary |
|---|
| Fields inherited from interface flex.messaging.FlexFactory |
|---|
SCOPE, SCOPE_APPLICATION, SCOPE_REQUEST, SCOPE_SESSION, SOURCE |
| Method Summary | |
|---|---|
FactoryInstance |
createFactoryInstance(String id,
ConfigMap properties)
This method is called when we initialize the definition of an instance which will be looked up by this factory. |
void |
initialize(String id,
ConfigMap configMap)
This method can be used to provide additional configuration parameters for the initializing this factory instance itself. |
Object |
lookup(FactoryInstance inst)
Returns the instance specified by the source and properties arguments. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void initialize(String id,
ConfigMap configMap)
initialize in interface FlexConfigurable
public FactoryInstance createFactoryInstance(String id,
ConfigMap properties)
createFactoryInstance in interface FlexFactorypublic Object lookup(FactoryInstance inst)
If your factory does not support the scope property, it report an error if scope is supplied in the properties for this instance.
lookup in interface FlexFactoryinst - the FactoryInstance to lookup.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcdsjavadoc/flex/messaging/factories/JavaFactory.html