org.apache.muse.ws.dm.muws
Interface CorrelationFactory

All Known Implementing Classes:
SimpleCorrelationFactory

public interface CorrelationFactory

CorrelationFactory is a device for creating correlation expressions from their XML definitions without having to reference concrete expression types.

Author:
Dan Jemiolo (danj)

Method Summary
 boolean hasDialect(String dialect)
           
 Correlation newInstance(WsResource resource, Element xml)
          Parses the given Element and creates a complete Correlation expression that can be evaluated against any WS-RF resource.
 

Method Detail

hasDialect

boolean hasDialect(String dialect)
Parameters:
dialect -
Returns:
True if the factory can create Correlations of the given type.

newInstance

Correlation newInstance(WsResource resource,
                        Element xml)
Parses the given Element and creates a complete Correlation expression that can be evaluated against any WS-RF resource.

Parameters:
owner - The local resource that is implementing CorrelatableProperties.
xml - The DOM Element representing the expression. This fragment should have a root element whose QName is the MUWS (Part 1) CorrelatableProperties and which has a 'Dialect' attribute. The latter will be used to determine the type of Correlation to create.
Returns:
A Correlation that can be evaluated against any WS-RF resource.


Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.