public final class FactoryMethod<T,P extends PersistentProperty<P>> extends Object
| Constructor and Description |
|---|
FactoryMethod(Method factoryMethod,
Parameter<Object,P>... parameters)
|
| Modifier and Type | Method and Description |
|---|---|
Method |
getFactoryMethod()
Returns the underlying
Constructor. |
List<Parameter<Object,P>> |
getParameters()
Returns the
Parameters of the executable. |
boolean |
isCreatorParameter(PersistentProperty<?> property)
Returns whether the given
PersistentProperty is referenced in a creator argument of the
PersistentEntity backing this InstanceCreatorMetadataSupport. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParameterCount, hasParameters, isParentParameter@SafeVarargs public FactoryMethod(Method factoryMethod, Parameter<Object,P>... parameters)
factoryMethod - must not be null.parameters - must not be null.public Method getFactoryMethod()
Constructor.public List<Parameter<Object,P>> getParameters()
Parameters of the executable.getParameters in interface InstanceCreatorMetadata<P extends PersistentProperty<P>>public boolean isCreatorParameter(PersistentProperty<?> property)
PersistentProperty is referenced in a creator argument of the
PersistentEntity backing this InstanceCreatorMetadataSupport.
Results of this call are cached and reused on the next invocation. Calling this method for a
PersistentProperty that was not yet added to its owning PersistentEntity will capture that state
and return the same result after adding PersistentProperty to its entity.
isCreatorParameter in interface InstanceCreatorMetadata<P extends PersistentProperty<P>>property - must not be null.PersistentProperty is used in the creator.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.