1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.tools.pamanager.rules;
18
19 import org.apache.commons.digester.Rule;
20 import org.apache.jetspeed.om.common.JetspeedServiceReference;
21 import org.apache.jetspeed.om.common.portlet.MutablePortletApplication;
22
23
24 /***
25 * This class helps load the jetspeed portlet extension service declarations.
26 *
27 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
28 */
29 public class JetspeedServiceRule extends Rule
30 {
31 private MutablePortletApplication app;
32
33 public JetspeedServiceRule(MutablePortletApplication app)
34 {
35 this.app = app;
36 }
37
38 public void end(String namespace, String name) throws Exception
39 {
40 JetspeedServiceReference service = (JetspeedServiceReference) digester.peek(0);
41 app.addJetspeedService(service);
42 }
43 }