You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/10/14 14:01:00 UTC

[jira] [Commented] (ISIS-1811) Release tasks for 2.0.0-M2

    [ https://issues.apache.org/jira/browse/ISIS-1811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16649403#comment-16649403 ] 

ASF subversion and git services commented on ISIS-1811:
-------------------------------------------------------

Commit 15cc9879c5bd01a5f5635846721761f895758503 in isis's branch refs/heads/v2 from danhaywood
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=15cc987 ]

ISIS-1811: updates docs for Axon eventhandler

has moved to a different package with upgrade.  Think this is ISIS-1905


> Release tasks for 2.0.0-M2
> --------------------------
>
>                 Key: ISIS-1811
>                 URL: https://issues.apache.org/jira/browse/ISIS-1811
>             Project: Isis
>          Issue Type: Task
>            Reporter: Dan Haywood
>            Assignee: Dan Haywood
>            Priority: Major
>             Fix For: 2.0.0-M2
>
>
> Migration Notes:
>  * @MemberGroupLayout was removed
>  * Axon Eventbus Plugin: switching from axon 2.x to 3.x which involves that axon's *EventHandler* annotation has moved: org.axonframework.eventhandling.annotation.EventHandler -> org.axonframework.eventhandling.EventHandler
>  * _IsisMatchers_ is no longer part of the 'core' API, but still available within test-scope.
>  * _Ensure_ as part of the 'core' API now accepts Java Predicates instead of hamcrest Matchers
>  * deployment types SERVER_EXPLORATION, UNIT_TESTING have been removed
>  * web.xml: no longer required to install listeners, filters and servlets; but is still required to configure the welcome page; _org.apache.isis.core.webapp.IsisWebAppContextListener_ acts as the single application entry-point to setup the dynamic part of the ServletContext.
>  ** ResourceCachingFilter is now configured via annotations (Servlet 3.0 spec), no longer needed to be declared in web.xml
>  ** ResourceServlet is now configured via annotations (Servlet 3.0 spec), no longer needed to be declared in web.xml
>  ** IsisTransactionFilterForRestfulObjects is now configured via annotations (Servlet 3.0 spec), no longer needed to be declared in web.xml
>  ** webjars Servlet was removed, no longer needed to be declared in web.xml
>  ** Shiro Environment, no longer needs to be declared in web.xml
>  ** Wicket Environment, no longer needs to be declared in web.xml
>  ** RestEasy Environment, no longer needs to be declared in web.xml
>  ** IsisSessionFilter is now part of the RestEasy WebModule, no longer needs to be declared in web.xml
>  ** LogOnExceptionLogger, no longer needs to be declared in web.xml
>  * web.xml apart from the new WebContextListener we introduce new web-specific (optional) config values, nothing else needs to configured here:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xmlns="http://xmlns.jcp.org/xml/ns/javaee"
> 	xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
> 	id="WebApp_ID" version="3.1">
> 	<display-name>My App</display-name>
> 	<welcome-file-list>
> 		<welcome-file>about/index.html</welcome-file>
> 	</welcome-file-list>
> 	<!-- unique bootstrapping entry-point for web-applications -->
>         <listener>
> 		<listener-class>org.apache.isis.core.webapp.IsisWebAppContextListener</listener-class>
> 	</listener>
> 	<!-- optional for overriding default 'wicket' -->
> 	<context-param>
> 		<param-name>isis.viewer.wicket.basePath</param-name>
> 		<param-value>my-wicket</param-value>
> 	</context-param>
> 	<!-- optional for overriding default 'org.apache.isis.viewer.wicket.viewer.IsisWicketApplication' -->
> 	<context-param>
> 		<param-name>isis.viewer.wicket.app</param-name>
> 		<param-value>domainapp.webapp.MyDomainApplication</param-value>
> 	</context-param>
> 	
> 	<!-- optional for overriding default 'restful' -->
> 	<context-param>
> 		<param-name>isis.viewer.restfulobjects.basePath</param-name>
> 		<param-value>my-restful</param-value>
> 	</context-param>
> </web-app>
> {code}
>  * module 'shiro' moved from `/core` to `/core/plugins` and its maven artifactId changed, to be in line with the other core-plugins:
> {code:xml}
> <dependency>
> 	<groupId>org.apache.isis.core</groupId>
> 	<artifactId>isis-core-plugins-security-shiro</artifactId>
> </dependency>
> {code}
>  * All previously available ways of setting the DeploymentType (using web.xml, isis.deploymentType or WebServer cmd-line flags -t or --type) are discouraged. Instead this is solely done now be specifying an environment variable `PROTOTYPING=true` or not. However, if there are use-cases that require a different approach, we might extend the API. Tracked by https://issues.apache.org/jira/browse/ISIS-1991
>  * ObjectAdapter is no longer holding a reference to an ObjectSpecification for the element type of collections. ObjectAdapter#getElementSpecification() moved to ObjectSpecification#getElementSpecification().
>  * ServicesInjector does now implement interface ServiceRegistry, where the service lookup method changed:
> {code:java}
> // previous
> <T> T lookupService(final Class<T> serviceClass);
> // new with 2.0.0-M2
> <T> Optional<T> lookupService(final Class<T> serviceClass);
> {code}
>  * We do now provide JAXB XmlAdapters for Java built-in temporal types in 'applib': org.apache.isis.applib.adapters.JaxbAdapters
>  * Wicket-Viewer: Instead of browser built-in tooltip rendering, the framework now provides tooltips using Javascript and CSS, currently with following stylesheet defaults:
> {noformat}
> .ui-tooltip {
>     max-width: 300px;
>     background-color: WhiteSmoke;
>     text-align: center;
>     padding: 5px 10px;
>     border-radius: 4px;
>     font-size: 12px;
>     box-shadow: 0 0 7px black;
>  
>     position: absolute;
>     z-index: 9999;
> }
> label.isis-component-with-tooltip, .isis-component-with-tooltip label, strong.isis-component-with-tooltip  {
>    text-decoration: underline dashed;
> }
> .ui-helper-hidden-accessible { display:none; } /* accessibility support disabled */
> {noformat}
>  * Rest Viewer: The content negotiation parameter 'suppress' does now allow more control on which '$$..' properties one wants to suppress. New options are
> {code:java}
> public static enum SuppressionType {
>     /** suppress '$$RO', RO Spec representation*/
>     RO,
>     
>     /** suppress '$$href', hyperlink to the representation*/
>     HREF,
>     
>     /** suppress '$$instanceId', instance id of the domain object*/
>     ID,
>     
>     /** suppress '$$title', title of the domain object*/
>     TITLE,
>     
>     /** suppress all '$$...' entries*/
>     ALL
> }{code}
> where these are case-insensitive and may be combined to a comma-separated set.
> Eg. to suppress $$title and $$href one could simply request
> {noformat}
> application/json;profile=urn:org.apache.isis/v1;suppress=title,href
> {noformat}
> We do not break the previous behavior with 'suppress=true' being equivalent to 'suppress=ro'



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)