Class AbstractSecurityBuilder<O>
- java.lang.Object
-
- org.springframework.security.config.annotation.AbstractSecurityBuilder<O>
-
- Type Parameters:
O
- the type of Object that is being built
- All Implemented Interfaces:
SecurityBuilder<O>
- Direct Known Subclasses:
AbstractConfiguredSecurityBuilder
public abstract class AbstractSecurityBuilder<O> extends java.lang.Object implements SecurityBuilder<O>
A baseSecurityBuilder
that ensures the object being built is only built one time.
-
-
Constructor Summary
Constructors Constructor Description AbstractSecurityBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description O
build()
Builds the object and returns it or null.protected abstract O
doBuild()
Subclasses should implement this to perform the build.O
getObject()
Gets the object that was built.
-
-
-
Method Detail
-
build
public final O build() throws java.lang.Exception
Description copied from interface:SecurityBuilder
Builds the object and returns it or null.- Specified by:
build
in interfaceSecurityBuilder<O>
- Returns:
- the Object to be built or null if the implementation allows it.
- Throws:
java.lang.Exception
- if an error occurred when building the Object
-
getObject
public final O getObject()
Gets the object that was built. If it has not been built yet an Exception is thrown.- Returns:
- the Object that was built
-
-