public abstract class RosterFactory extends Object
RosterFactory
is an factory that is responsible for creation appropriate instance of RosterAbstract
class
Modifier and Type | Class and Description |
---|---|
static class |
RosterFactory.Bean |
Modifier and Type | Field and Description |
---|---|
static String |
defaultRosterImplementation |
static String |
ROSTER_IMPL_PROP_KEY
Key used to configure class name holding roster implementation
|
static String |
ROSTER_IMPL_PROP_VAL
Default roster implementation class -
RosterFactory |
Constructor and Description |
---|
RosterFactory() |
Modifier and Type | Method and Description |
---|---|
static RosterAbstract |
getRosterImplementation(boolean shared_impl)
Creates new instance of class implementing
RosterAbstract - either default one (RosterFlat ) or
the one configured with "roster-implementation" property. |
static RosterAbstract |
newRosterInstance(String class_name) |
public static final String ROSTER_IMPL_PROP_KEY
public static final String ROSTER_IMPL_PROP_VAL
RosterFactory
public static String defaultRosterImplementation
public static RosterAbstract getRosterImplementation(boolean shared_impl)
RosterAbstract
- either default one (RosterFlat
) or
the one configured with "roster-implementation" property.shared_impl
- determines whether to returns shared or non shared implementationRosterAbstract
public static RosterAbstract newRosterInstance(String class_name) throws ClassNotFoundException, IllegalAccessException, InstantiationException
Copyright © 2004–2021 "Tigase, Inc.". All rights reserved.