[
https://issues.apache.org/jira/browse/ISIS-1909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16436922#comment-16436922
]
Andi Huber commented on ISIS-1909:
----------------------------------
MementoService is deprecated, how to migrate:
+BEFORE:+
{code:java}
@javax.inject.Inject
MementoService mementoService;
String mementoFor(final FixtureScript fs) {
return mementoService.create()
.set("path", fs.getParentPath())
.asString();
}
void initOf(final String mementoStr, final FixtureScript fs) {
final Memento memento = mementoService.parse(mementoStr);
fs.setParentPath(memento.get("path", String.class));
}
{code}
+AFTER:+
{code:java}
@XmlRootElement(name = "fixtureScript")
public static class FixtureScriptMemento {
private String path;
public String getPath() { return path; }
public void setPath(String path) { this.path = path; }
}
String mementoFor(final FixtureScript fs) {
final FixtureScriptMemento memento = new FixtureScriptMemento();
memento.setPath(fs.getParentPath());
return jaxbService.toXml(memento);
}
void initOf(final String xml, final FixtureScript fs) {
final FixtureScriptMemento memento =
jaxbService.fromXml(FixtureScriptMemento.class, xml);
fs.setParentPath(memento.getPath());
}
{code}
> Migration Notes: Moved and Deprecated Classes
> ---------------------------------------------
>
> Key: ISIS-1909
> URL: https://issues.apache.org/jira/browse/ISIS-1909
> Project: Isis
> Issue Type: Sub-task
> Reporter: Andi Huber
> Priority: Major
> Fix For: 2.0.0-M1
>
>
> +Removed+
> * IsisJdoSupport (replaced by API specific variants)
> * Annotation Parseable removed
> * Annotation Encodable removed
> * ...
> +Moved+
> FROM
> org/apache/isis/applib/services/eventbus/*
> TO
> org/apache/isis/applib/events/domain/AbstractDomainEvent
> org/apache/isis/applib/events/domain/ActionDomainEvent
> org/apache/isis/applib/events/domain/CollectionDomainEvent
> org/apache/isis/applib/events/domain/PropertyDomainEvent
> org/apache/isis/applib/events/lifecycle/AbstractLifecycleEvent
> org/apache/isis/applib/events/lifecycle/ObjectCreatedEvent
> org/apache/isis/applib/events/lifecycle/ObjectLoadedEvent
> org/apache/isis/applib/events/lifecycle/ObjectPersistedEvent
> org/apache/isis/applib/events/lifecycle/ObjectPersistingEvent
> org/apache/isis/applib/events/lifecycle/ObjectRemovingEvent
> org/apache/isis/applib/events/lifecycle/ObjectUpdatedEvent
> org/apache/isis/applib/events/lifecycle/ObjectUpdatingEvent
> org/apache/isis/applib/events/ui/AbstractUiEvent
> org/apache/isis/applib/events/ui/CssClassUiEvent
> org/apache/isis/applib/events/ui/IconUiEvent
> org/apache/isis/applib/events/ui/TitleUiEvent
> +ISIS-1599+
> Meta-Data validation will now fail if a collection action parameter is found
> that is not exactly one of the following supported types: List, Set,
> SortedSet, Collection or Array.
> +In case we ship the legacy build (unlikely) ...+
> to ease transition from 1.x to 2.0 we introduced legacy variants as drop-in
> replacements
> - RepositoryService -> RepositoryServiceLegacy
> - ExceptionRecognizerAbstract -> ExceptionRecognizerAbstractLegacy
> - ExceptionRecognizerForType -> ExceptionRecognizerForTypeLegacy
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)