KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jivesoftware > messenger > audit > AuditStreamIDFactory


1 /**
2  * $RCSfile: AuditStreamIDFactory.java,v $
3  * $Revision: 1.2 $
4  * $Date: 2004/10/21 06:30:10 $
5  *
6  * Copyright (C) 2004 Jive Software. All rights reserved.
7  *
8  * This software is published under the terms of the GNU Public License (GPL),
9  * a copy of which is included in this distribution.
10  */

11
12 package org.jivesoftware.messenger.audit;
13
14 import org.jivesoftware.messenger.StreamID;
15 import org.jivesoftware.messenger.StreamIDFactory;
16 import org.jivesoftware.messenger.spi.BasicStreamIDFactory;
17
18 /**
19  * Factory for producing audit stream IDs. We use a factory so that
20  * audit information can be identified using an appropriate storage
21  * key (typically a long for RDBMS).
22  *
23  * @author Iain Shigeoka
24  */

25 public class AuditStreamIDFactory implements StreamIDFactory {
26
27     private BasicStreamIDFactory factory = new BasicStreamIDFactory();
28
29     public AuditStreamIDFactory() {
30     }
31
32     public StreamID createStreamID() {
33         return factory.createStreamID();
34     }
35 }
36
Popular Tags