|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The FlexFactory interface is implemented by factory components that provide instances to the Flex messaging framework. You can implement this interface if you want to tie together Flex Data Services with another system which maintains component instances (often called the "services layer" in a typical enterprise architecture). By implementing FlexFactory, you can configure a Flex RemoteObject destination or a Flex Data Management Services assembler which uses a Java object instance in your services layer rather than having FDS create a new component instance. In some cases, this means you avoid writing glue code for each service you want to expose to flex clients.
| Field Summary | |
static String |
SCOPE_APPLICATION
|
static String |
SCOPE_REQUEST
|
static String |
SCOPE_SESSION
|
| Method Summary | |
FactoryInstance |
createFactoryInstance(String id,
ConfigMap properties)
This method is called when the definition of an instance that this factory looks up is initialized. |
Object |
lookup(FactoryInstance instanceInfo)
This method is called by the default implementation of FactoryInstance.lookup. |
| Methods inherited from interface flex.messaging.FlexConfigurable |
initialize |
| Field Detail |
public static final String SCOPE_REQUEST
public static final String SCOPE_SESSION
public static final String SCOPE_APPLICATION
| Method Detail |
public FactoryInstance createFactoryInstance(String id,
ConfigMap properties)
Any valid properties used for this configuration must be accessed to avoid warnings about unused configuration elements. If your factory is only used for application scoped components, you do not need to implement this method as the lookup method itself can be used to validate its configuration.
The id property is used as a name to help you identify this factory instance for any errors it might generate.
public Object lookup(FactoryInstance instanceInfo)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||