KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > umo > transformer > UMOTransformer


1 /*
2  * $Id: UMOTransformer.java 4259 2006-12-14 03:12:07Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.umo.transformer;
12
13 import org.mule.umo.endpoint.UMOImmutableEndpoint;
14
15 /**
16  * <code>UMOTransformer</code> extends a UMOSimpleTransformer with the provision of
17  * a Transformer component, which simply keeps a copy of the 'live' transfromed data,
18  * so that any further transformations will use this cached data. When a component is
19  * rolled back a cached copy of the source data will be returned. When the component
20  * is committed the caches are cleared. Starting a component will simply put the
21  * transfromer in component mode.
22  */

23 public interface UMOTransformer extends UMOSimpleTransformer
24 {
25     /**
26      * @return the endpoint associated with the transformer
27      */

28     UMOImmutableEndpoint getEndpoint();
29
30     /**
31      * @param endpoint sets the endpoint associated with the transfromer
32      */

33     void setEndpoint(UMOImmutableEndpoint endpoint);
34
35     boolean isSourceTypeSupported(Class JavaDoc aClass);
36
37     boolean isAcceptNull();
38
39 }
40
Popular Tags