Package tigase.xmpp.impl.roster
Class RosterFactory
- java.lang.Object
-
- tigase.xmpp.impl.roster.RosterFactory
-
public abstract class RosterFactory extends java.lang.Object
RosterFactory
is an factory that is responsible for creation appropriate instance ofRosterAbstract
class
Created: Thu Sep 4 18:33:11 2008- Author:
- Artur Hefczyc
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RosterFactory.Bean
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
defaultRosterImplementation
static java.lang.String
ROSTER_IMPL_PROP_KEY
Key used to configure class name holding roster implementationstatic java.lang.String
ROSTER_IMPL_PROP_VAL
Default roster implementation class -RosterFactory
-
Constructor Summary
Constructors Constructor Description RosterFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RosterAbstract
getRosterImplementation(boolean shared_impl)
Creates new instance of class implementingRosterAbstract
- either default one (RosterFlat
) or the one configured with "roster-implementation" property.static RosterAbstract
newRosterInstance(java.lang.String class_name)
-
-
-
Field Detail
-
ROSTER_IMPL_PROP_KEY
public static final java.lang.String ROSTER_IMPL_PROP_KEY
Key used to configure class name holding roster implementation- See Also:
- Constant Field Values
-
ROSTER_IMPL_PROP_VAL
public static final java.lang.String ROSTER_IMPL_PROP_VAL
Default roster implementation class -RosterFactory
-
defaultRosterImplementation
public static java.lang.String defaultRosterImplementation
-
-
Method Detail
-
getRosterImplementation
public static RosterAbstract getRosterImplementation(boolean shared_impl)
Creates new instance of class implementingRosterAbstract
- either default one (RosterFlat
) or the one configured with "roster-implementation" property.- Parameters:
shared_impl
- determines whether to returns shared or non shared implementation- Returns:
- new instance of class implementing
RosterAbstract
-
newRosterInstance
public static RosterAbstract newRosterInstance(java.lang.String class_name) throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException
- Throws:
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
-
-