T
- the typepublic abstract class AbstractSAMLObjectBuilderFactoryBean<T extends SAMLObject>
extends org.springframework.beans.factory.config.AbstractFactoryBean<T>
SAMLObjectBuilder
interface.Constructor and Description |
---|
AbstractSAMLObjectBuilderFactoryBean() |
Modifier and Type | Method and Description |
---|---|
protected abstract AbstractSAMLObjectBuilder<T> |
builder()
Returns the builder.
|
protected T |
createInstance()
The default implementation assumes that the object has been set up when elements and attributes were assigned, and
simply returns the build object (if this is not a singleton bean, the object is cloned).
|
protected static LocalizedString[] |
localizedStringListToVarArgs(List<LocalizedString> list)
Utility method that transforms a list of
LocalizedString objects into a varargs array (for usage in calls
to builder instances). |
protected static String[] |
stringListToVarArgs(List<String> list)
Utility method that transforms a list of
String objects into a varargs array (for usage in calls to builder
instances). |
protected static <V> V[] |
toVarArgs(List<V> list,
Class<V> cls)
Utility method that transforms a list into a varargs array (for usage in calls to builder instances).
|
public AbstractSAMLObjectBuilderFactoryBean()
protected T createInstance() throws Exception
createInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean<T extends SAMLObject>
Exception
protected abstract AbstractSAMLObjectBuilder<T> builder()
protected static <V> V[] toVarArgs(List<V> list, Class<V> cls)
V
- the type of objects stored in the arraylist
- the list to transformcls
- the type of elements in the listprotected static LocalizedString[] localizedStringListToVarArgs(List<LocalizedString> list)
LocalizedString
objects into a varargs array (for usage in calls
to builder instances).list
- the list to transformCopyright © 2018 Litsec AB. All rights reserved.