01: /**
02: * $RCSfile$
03: * $Revision: 38 $
04: * $Date: 2004-10-21 03:30:10 -0300 (Thu, 21 Oct 2004) $
05: *
06: * Copyright (C) 2004 Jive Software. All rights reserved.
07: *
08: * This software is published under the terms of the GNU Public License (GPL),
09: * a copy of which is included in this distribution.
10: */package org.jivesoftware.openfire.audit;
11:
12: import org.jivesoftware.openfire.StreamID;
13: import org.jivesoftware.openfire.StreamIDFactory;
14: import org.jivesoftware.openfire.spi.BasicStreamIDFactory;
15:
16: /**
17: * Factory for producing audit stream IDs. We use a factory so that
18: * audit information can be identified using an appropriate storage
19: * key (typically a long for RDBMS).
20: *
21: * @author Iain Shigeoka
22: */
23: public class AuditStreamIDFactory implements StreamIDFactory {
24:
25: private BasicStreamIDFactory factory = new BasicStreamIDFactory();
26:
27: public AuditStreamIDFactory() {
28: }
29:
30: public StreamID createStreamID() {
31: return factory.createStreamID();
32: }
33: }
|