Package org.cometd.oort
Interface OortObject.Factory<T>
-
- Type Parameters:
T
- the type of the objects created
- Enclosing class:
- OortObject<T>
public static interface OortObject.Factory<T>
Factory that creates objects stored byOortObject
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
newObject(java.lang.Object representation)
Creates a new non-null object from the givenrepresentation
.
-
-
-
Method Detail
-
newObject
T newObject(java.lang.Object representation)
Creates a new non-null object from the givenrepresentation
. Therepresentation
may be the result of JSON serialization, and this factory may convert it to a more appropriate object, for example from a JSON serializedMap
to aConcurrentMap
.- Parameters:
representation
- the representation of the object, may be null to indicate to return a default, non-null object- Returns:
- the new, non-null, object from the representation
-
-