01: // Copyright (c) 2004-2005 Sun Microsystems Inc., All Rights Reserved.
02: /*
03: * ManagementMessageBuidler.java
04: *
05: * SUN PROPRIETARY/CONFIDENTIAL.
06: * This software is the proprietary information of Sun Microsystems, Inc.
07: * Use is subject to license terms.
08: *
09: */
10: package com.sun.jbi.common.management;
11:
12: /**
13: * BuildManagementMessage defines the interface that must be invoked by bindings and
14: * engines in order to construct exception messages before throwing them back to the JBI
15: * Framework.
16: *
17: * @author Sun Microsystems, Inc.
18: */
19: public interface ManagementMessageBuilder {
20: /**
21: * return an XML string of the component message(either status or exception message).
22: *
23: * @param msgObject component message holder object
24: *
25: * @return Message as XML string
26: *
27: * @throws Exception if unable to build message
28: */
29: String buildComponentMessage(ComponentMessageHolder msgObject)
30: throws Exception;
31: }
|