|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.utilities.java.support.component.ComponentSupport
public final class ComponentSupport
Support class for working with Component objects.
| Constructor Summary | |
|---|---|
private |
ComponentSupport()
Constructor. |
| Method Summary | |
|---|---|
static void |
destroy(Object obj)
If the given object is not null and an instance of DestructableComponent, then this method calls the
given object's DestructableComponent.destroy() method. |
static void |
ifDestroyedThrowDestroyedComponentException(DestructableComponent component)
Checks if a component is destroyed and, if so, throws a DestroyedComponentException. |
static void |
ifInitializedThrowUnmodifiabledComponentException(InitializableComponent component)
Checks if a component has been initialized and, if so, throws a UnmodifiableComponentException. |
static void |
ifNotInitializedThrowUninitializedComponentException(InitializableComponent component)
Checks if a component has not been initialized and, if so, throws a UninitializedComponentException. |
static void |
initialize(Object obj)
If the given object is not null and an instance of InitializableComponent, then this method calls the
given object's InitializableComponent.initialize() method. |
static void |
validate(Object obj)
If the given object is not null and an instance of ValidatableComponent, then this method calls the given
object's ValidatableComponent.validate() method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private ComponentSupport()
| Method Detail |
|---|
public static void destroy(@Nullable
Object obj)
DestructableComponent, then this method calls the
given object's DestructableComponent.destroy() method.
obj - object to destroy, may be null
public static void initialize(@Nullable
Object obj)
throws ComponentInitializationException
InitializableComponent, then this method calls the
given object's InitializableComponent.initialize() method.
obj - object to initialize, may be null
ComponentInitializationException - thrown if there is a problem initializing the object
public static void validate(@Nullable
Object obj)
throws ComponentValidationException
ValidatableComponent, then this method calls the given
object's ValidatableComponent.validate() method.
obj - object to validate, may be null
ComponentValidationException - thrown if there is a problem validating the object
public static void ifDestroyedThrowDestroyedComponentException(@Nonnull
DestructableComponent component)
DestroyedComponentException. If the component is
also an instance of IdentifiableComponent, the component's ID is included in the error message.
component - component to check
public static void ifNotInitializedThrowUninitializedComponentException(@Nonnull
InitializableComponent component)
UninitializedComponentException. If
the component is also an instance of IdentifiableComponent, the component's ID is included in the error
message.
component - component to check
public static void ifInitializedThrowUnmodifiabledComponentException(@Nullable
InitializableComponent component)
UnmodifiableComponentException. If the
component is also an instance of IdentifiableComponent, the component's ID is included in the error
message.
component - component to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||