public class ObjectSpecificationDefault extends ObjectSpecificationAbstract implements DebuggableWithTitle, FacetHolder
ObjectSpecificationAbstract.IntrospectionStatemetadataProperties, objectMemberContextCOMPARATOR_FULLY_QUALIFIED_CLASS_NAME, COMPARATOR_SHORT_IDENTIFIER_IGNORE_CASE, EMPTY_LIST, FUNCTION_FULLY_QUALIFIED_CLASS_NAME| Constructor and Description |
|---|
ObjectSpecificationDefault(Class<?> correspondingClass,
FacetedMethodsBuilderContext facetedMethodsBuilderContext,
IntrospectionContext introspectionContext,
SpecificationContext specContext,
ObjectMemberContext objectMemberContext,
CreateObjectContext createObjectContext) |
| Modifier and Type | Method and Description |
|---|---|
Object |
createObject() |
void |
debugData(DebugBuilder debug)
Debug details describing the object being investigated
|
String |
debugTitle()
The title for the debug information
|
protected AdapterManager |
getAdapterMap() |
protected ServicesInjector |
getDependencyInjector() |
ObjectMember |
getMember(Method method) |
ObjectAction |
getObjectAction(ActionType type,
String id)
Get the action object represented by the specified identity string.
|
ObjectAction |
getObjectAction(ActionType type,
String id,
List<ObjectSpecification> parameters)
Returns the action of the specified type with the specified signature.
|
ObjectAction |
getObjectAction(String id)
Get the action object represented by the specified identity string,
irrespective of
ActionType. |
ObjectAdapter |
initialize(ObjectAdapter adapter)
REVIEW: does this behaviour live best here? Not that sure that it does...
|
void |
introspectTypeHierarchyAndMembers() |
boolean |
isService()
Whether or not this specification represents a domain service (as opposed
to a domain entity or a value etc).
|
void |
markAsService()
TODO: should ensure that service has at least one user action; fix when
specification knows of its hidden methods.
|
String |
toString() |
clearDirty, createContributeeActions, createTitleInteractionContext, createValidityInteractionContext, getAssociation, getAssociations, getAssociations, getAssociations, getAuthenticationSession, getAuthenticationSessionProvider, getCollections, getCorrespondingClass, getCssClass, getDefaultValue, getDeploymentCategory, getDescription, getFacet, getFeatureType, getFullIdentifier, getHelp, getIconName, getIdentifier, getInstance, getIntrospectionState, getObjectActions, getObjectActions, getObjectActions, getObjectInstantiator, getPluralName, getProperties, getServiceActionsReturning, getServicesProvider, getShortIdentifier, getSingularName, getSpecId, getSpecificationLookup, getTitle, getTitle, hasSubclasses, interfaces, isAbstract, isDirty, isEncodeable, isHidden, isImmutable, isNotCollection, isNotIntrospected, isOfType, isParented, isParentedOrFreeCollection, isParseable, isValid, isValidResult, isValue, isValueOrIsParented, markDirty, persistability, setClearDirtyObjectFacet, setIntrospectionState, sortActions, sortAndUpdateAssociations, sortAssociations, sortCacheAndUpdateActions, subclasses, superclass, updateAsSubclassTo, updateAsSubclassTo, updateFromFacetValues, updateInterfaces, updateSuperclassaddFacet, addFacet, containsDoOpFacet, containsFacet, getFacets, getFacetTypes, removeFacet, removeFacetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddFacet, addFacet, containsDoOpFacet, containsFacet, getFacet, getFacets, getFacetTypes, removeFacet, removeFacetpublic ObjectSpecificationDefault(Class<?> correspondingClass, FacetedMethodsBuilderContext facetedMethodsBuilderContext, IntrospectionContext introspectionContext, SpecificationContext specContext, ObjectMemberContext objectMemberContext, CreateObjectContext createObjectContext)
public void introspectTypeHierarchyAndMembers()
introspectTypeHierarchyAndMembers in class ObjectSpecificationAbstractpublic boolean isService()
ObjectSpecificationWARNING: this only returns true once the metamodel has been fully built, and a PersistenceSession has been opened. This should probably be improved upon; for now, beware...
isService in interface ObjectSpecificationpublic void markAsService()
if (objectActions != null && objectActions.length == 0) {
throw new ObjectSpecificationException("Service object " + getFullName() + " should have at least one user action");
}
markAsService in interface ObjectSpecificationpublic ObjectAction getObjectAction(ActionType type, String id, List<ObjectSpecification> parameters)
ObjectActionContainergetObjectAction in interface ObjectActionContainerpublic ObjectAction getObjectAction(ActionType type, String id)
ObjectActionContainer
The identity string can be either fully specified with parameters (as per
Identifier.toNameParmsIdentityString() or in abbreviated form (
Identifier.toNameIdentityString()).
getObjectAction in interface ObjectActionContainerObjectActionContainer.getObjectAction(String)public ObjectAction getObjectAction(String id)
ObjectActionContainerActionType.
The identity string can be either fully specified with parameters (as per
Identifier.toNameParmsIdentityString() or in abbreviated form (
Identifier.toNameIdentityString()).
getObjectAction in interface ObjectActionContainerObjectActionContainer.getObjectAction(ActionType, String)public Object createObject()
createObject in interface ObjectSpecificationcreateObject in class ObjectSpecificationAbstractpublic ObjectAdapter initialize(ObjectAdapter adapter)
initialize in interface ObjectSpecificationinitialize in class ObjectSpecificationAbstractpublic ObjectMember getMember(Method method)
public void debugData(DebugBuilder debug)
DebuggabledebugData in interface Debuggablepublic String debugTitle()
DebuggableWithTitledebugTitle in interface DebuggableWithTitlepublic String toString()
toString in class ObjectSpecificationAbstractprotected AdapterManager getAdapterMap()
protected ServicesInjector getDependencyInjector()
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.