01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.pluto.descriptors.services;
19:
20: import org.apache.pluto.descriptors.portlet.PortletAppDD;
21:
22: import java.io.IOException;
23: import java.io.InputStream;
24: import java.io.OutputStream;
25:
26: /**
27: * Read/Write services for Portlet Application configuration
28: * This service reads the portlet.xml and converts it to a
29: * standard bean model.
30: *
31: * @version $Id: PortletAppDescriptorService.java 157038 2005-03-11 03:44:40Z ddewolf $
32: * @since Mar 6, 2005
33: */
34: public interface PortletAppDescriptorService {
35:
36: /**
37: * Retrieve the PortletApp deployment descriptor
38: * (portlet.xml).
39: * @return Object representation of the descriptor.
40: * @throws IOException if an IO error occurs.
41: */
42: PortletAppDD read(InputStream in) throws IOException;
43:
44: /**
45: * Write the PortletApp deployment descriptor
46: * (portlet.xml).
47: * @param portletDescriptor
48: * @param out
49: * @throws IOException if an IO error occurs.
50: */
51: void write(PortletAppDD portletDescriptor, OutputStream out)
52: throws IOException;
53: }
|