embed.xml.svn-base
来自「portal越来越流行了」· SVN-BASE 代码 · 共 91 行
SVN-BASE
91 行
<?xml version="1.0" encoding="UTF-8"?><!--Licensed to the Apache Software Foundation (ASF) under one or morecontributor license agreements. See the NOTICE file distributed withthis work for additional information regarding copyright ownership.The ASF licenses this file to You under the Apache License, Version 2.0(the "License"); you may not use this file except in compliance withthe License. You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express orimplied.See the License for the specific language governing permissions andlimitations under the License.--><document> <properties> <title>Embedding the Pluto Container</title> </properties> <body> <section name="Embedding the Pluto Container"> <p> This document is currently <b>very</b> breif. Please feel free to submit patches. </p> <subsection name="Steps for Embedding Pluto"> <p> <b>Step 1:</b> Implement <code>org.apache.pluto.PortletContainerServices</code> </p> <p> <b>Step 2:</b> Manage the Portlet Container Lifecycle: <ul> <li> Create an instance of the container: <source><![CDATA[//// Step 1) Create and instance of the PortletContainerService//PortletContainerServices impl = . . .//// Step 2) Request a new container from the container factory//PortletContainerFactory factory = PortletContainerFactory.getInstance();PortletContainer container = factory.createContainer( "My Container Name", impl);//// Step 3) Initialize the Container with the embedding // application's ServletContext//container.init(ctx); ]]></source> </li> <li>Destroy the Container during Shutdown.</li> </ul> </p> <p> <b>Step 3:</b> Invoke the Container as necessary: <source><![CDATA[// Load a portletcontainer.doLoad(portletWindow, request, response);// Process a Portlet Actioncontainer.doAction(portletWindow, request, response);// Render a portletcontainer.doRender(portletWindow, request, response); ]]></source> </p> </subsection> </section> </body> </document>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?