Package edu.uiuc.ncsa.security.core.util
Class IdentifiableProviderImpl<V extends Identifiable>
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl<V>
-
- All Implemented Interfaces:
IdentifiableProvider<V>,Serializable,javax.inject.Provider<V>
public abstract class IdentifiableProviderImpl<V extends Identifiable> extends Object implements IdentifiableProvider<V>
Use this to create various identifiable things, i.e., objects that have globally unique ids.Created by Jeff Gaynor
on 4/3/12 at 2:53 PM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.inject.Provider<Identifier>idProvider
-
Constructor Summary
Constructors Modifier Constructor Description protectedIdentifiableProviderImpl(javax.inject.Provider<Identifier> idProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IdentifiercreateNewId(boolean createNewIdentifier)This utility method returns a new identifier if the argument is true and a null otherwise.Vget()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.uiuc.ncsa.security.core.IdentifiableProvider
get
-
-
-
-
Field Detail
-
idProvider
protected javax.inject.Provider<Identifier> idProvider
-
-
Constructor Detail
-
IdentifiableProviderImpl
protected IdentifiableProviderImpl(javax.inject.Provider<Identifier> idProvider)
-
-
Method Detail
-
get
public V get()
- Specified by:
getin interfacejavax.inject.Provider<V extends Identifiable>
-
createNewId
protected Identifier createNewId(boolean createNewIdentifier)
This utility method returns a new identifier if the argument is true and a null otherwise. Call this to do the identifier creation logic when implementingIdentifiableProvider.get(boolean).- Parameters:
createNewIdentifier-- Returns:
-
-