Package tigase.xmpp.impl.roster
Class RosterFactory
java.lang.Object
tigase.xmpp.impl.roster.RosterFactory
RosterFactory is an factory that is responsible for creation appropriate instance of RosterAbstract
class
Created: Thu Sep 4 18:33:11 2008
- Author:
- Artur Hefczyc
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic final StringKey used to configure class name holding roster implementationstatic final StringDefault roster implementation class -RosterFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RosterAbstractgetRosterImplementation(boolean shared_impl) Creates new instance of class implementingRosterAbstract- either default one (RosterFlat) or the one configured with "roster-implementation" property.static RosterAbstractnewRosterInstance(String class_name)
-
Field Details
-
ROSTER_IMPL_PROP_KEY
Key used to configure class name holding roster implementation- See Also:
-
ROSTER_IMPL_PROP_VAL
Default roster implementation class -RosterFactory -
defaultRosterImplementation
-
-
Constructor Details
-
RosterFactory
public RosterFactory()
-
-
Method Details
-
getRosterImplementation
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(String class_name) throws ClassNotFoundException, IllegalAccessException, InstantiationException
-