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 baseSecurityBuilderthat 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 Obuild()Builds the object and returns it or null.protected abstract OdoBuild()Subclasses should implement this to perform the build.OgetObject()Gets the object that was built.
-
-
-
Method Detail
-
build
public final O build() throws java.lang.Exception
Description copied from interface:SecurityBuilderBuilds the object and returns it or null.- Specified by:
buildin 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
-
-