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
A base
SecurityBuilder
that ensures the object being built is only built one
time.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AbstractSecurityBuilder
public AbstractSecurityBuilder()
-
-
Method Details
-
build
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:
Exception
- if an error occurred when building the Object
-
getObject
Gets the object that was built. If it has not been built yet an Exception is thrown.- Returns:
- the Object that was built
-
doBuild
Subclasses should implement this to perform the build.
-