Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
92c5e3e03e
|
@ -0,0 +1,29 @@
|
|||
*.class
|
||||
|
||||
# Package Files #
|
||||
*.war
|
||||
*.ear
|
||||
|
||||
|
||||
# Eclipse
|
||||
.settings/
|
||||
*.project
|
||||
*.classpath
|
||||
.prefs
|
||||
*.prefs
|
||||
.metadata/
|
||||
|
||||
# Intellij
|
||||
.idea/
|
||||
*.iml
|
||||
*.iws
|
||||
|
||||
# Mac
|
||||
.DS_Store
|
||||
|
||||
# Maven
|
||||
log/
|
||||
target/
|
||||
|
||||
spring-openid/src/main/resources/application.properties
|
||||
.recommenders/
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "testgitrepo"]
|
||||
path = testgitrepo
|
||||
url = /home/prd/Development/projects/idea/tutorials/spring-boot/src/main/resources/testgitrepo/
|
|
@ -0,0 +1,253 @@
|
|||
|
||||
!ENTRY org.eclipse.core.resources 4 2 2014-10-16 20:42:46.953
|
||||
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
|
||||
!STACK 0
|
||||
java.lang.IllegalStateException: Registry Directory not available: /Users/Elena/tutorials/.metadata/.plugins/org.eclipse.pde.core/.p2/org.eclipse.equinox.p2.engine/profileRegistry.
|
||||
at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.restore(SimpleProfileRegistry.java:480)
|
||||
at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.getProfileMap(SimpleProfileRegistry.java:338)
|
||||
at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.getProfiles(SimpleProfileRegistry.java:320)
|
||||
at org.eclipse.pde.internal.core.target.P2TargetUtils.cleanOrphanedTargetDefinitionProfiles(P2TargetUtils.java:168)
|
||||
at org.eclipse.pde.internal.core.PDECore$1.saving(PDECore.java:274)
|
||||
at org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:383)
|
||||
at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:192)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
|
||||
at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:195)
|
||||
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1130)
|
||||
at org.eclipse.core.internal.resources.Workspace.save(Workspace.java:2376)
|
||||
at org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor$5.run(IDEWorkbenchAdvisor.java:508)
|
||||
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
|
||||
|
||||
!ENTRY org.eclipse.ui.ide 4 4 2014-10-16 20:42:55.472
|
||||
!MESSAGE Problems saving workspace
|
||||
|
||||
!ENTRY org.eclipse.ui.ide 4 1 2014-10-16 20:42:55.472
|
||||
!MESSAGE Problems occurred while trying to save the state of the workbench.
|
||||
!SUBENTRY 1 org.eclipse.core.resources 4 568 2014-10-16 20:42:55.472
|
||||
!MESSAGE Could not write workspace metadata '/Users/Elena/tutorials/.metadata/.plugins/org.eclipse.core.resources/.root/1.tree'.
|
||||
!STACK 0
|
||||
java.io.FileNotFoundException: /Users/Elena/tutorials/.metadata/.plugins/org.eclipse.core.resources/.root/1.tree (No such file or directory)
|
||||
at java.io.FileOutputStream.open(Native Method)
|
||||
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
|
||||
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
|
||||
at org.eclipse.core.internal.localstore.SafeFileOutputStream.<init>(SafeFileOutputStream.java:51)
|
||||
at org.eclipse.core.internal.resources.SaveManager.saveTree(SaveManager.java:1352)
|
||||
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1134)
|
||||
at org.eclipse.core.internal.resources.Workspace.save(Workspace.java:2376)
|
||||
at org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor$5.run(IDEWorkbenchAdvisor.java:508)
|
||||
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
|
||||
!SESSION 2014-10-16 20:43:17.092 -----------------------------------------------
|
||||
eclipse.buildId=4.3.2.M20140221-1700
|
||||
java.version=1.8.0_20
|
||||
java.vendor=Oracle Corporation
|
||||
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=es_ES
|
||||
Framework arguments: -product org.eclipse.epp.package.standard.product -keyring /Users/Elena/.eclipse_keyring -showlocation
|
||||
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.standard.product -keyring /Users/Elena/.eclipse_keyring -showlocation
|
||||
|
||||
!ENTRY org.eclipse.core.net 1 0 2014-10-16 20:43:52.743
|
||||
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
|
||||
|
||||
!ENTRY org.eclipse.jface 2 0 2014-10-16 20:43:53.942
|
||||
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
|
||||
!SUBENTRY 1 org.eclipse.jface 2 0 2014-10-16 20:43:53.943
|
||||
!MESSAGE A conflict occurred for COMMAND+SHIFT+F10:
|
||||
Binding(COMMAND+SHIFT+F10,
|
||||
ParameterizedCommand(Command(org.jboss.tools.common.ui.RegisterAsService,Register As Service,
|
||||
Adds class name to META-INF/services/%serviceType% file after service type is selected in the dialog from types extended and implemented by the class.,
|
||||
Category(org.eclipse.ui.category.file,File,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@2df3545d,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
Binding(COMMAND+SHIFT+F10,
|
||||
ParameterizedCommand(Command(org.eclipse.ui.window.showSystemMenu,Show System Menu,
|
||||
Show the system menu,
|
||||
Category(org.eclipse.ui.category.window,Window,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@75ad30c1,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,cocoa,system)
|
||||
!SUBENTRY 1 org.eclipse.jface 2 0 2014-10-16 20:43:53.943
|
||||
!MESSAGE A conflict occurred for ALT+COMMAND+Z:
|
||||
Binding(ALT+COMMAND+Z,
|
||||
ParameterizedCommand(Command(org.jboss.tools.cdi.ui.open.namedBean,Open CDI Named Bean,
|
||||
Open CDI Named Bean,
|
||||
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@fe8aaeb,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
Binding(ALT+COMMAND+Z,
|
||||
ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.surround.with.quickMenu,Surround With Quick Menu,
|
||||
Shows the Surround With quick menu,
|
||||
Category(org.eclipse.jdt.ui.category.source,Source,Java Source Actions,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6b9697ae,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,cocoa,system)
|
||||
|
||||
!ENTRY com.android.ide.eclipse.adt 1 0 2014-10-16 20:44:03.016
|
||||
!MESSAGE No valid Android XML Editor Delegate found for file /handling-spring-static-resources/pom.xml [Res null, type null]
|
||||
|
||||
!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-10-16 20:44:06.875
|
||||
!MESSAGE
|
||||
!STACK 0
|
||||
org.eclipse.core.runtime.AssertionFailedException: assertion failed:
|
||||
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
|
||||
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:96)
|
||||
at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1081)
|
||||
at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:607)
|
||||
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:362)
|
||||
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:142)
|
||||
at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
|
||||
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:323)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:483)
|
||||
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
|
||||
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:877)
|
||||
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
|
||||
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:119)
|
||||
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333)
|
||||
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:254)
|
||||
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
|
||||
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
|
||||
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
|
||||
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
|
||||
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
|
||||
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1147)
|
||||
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:96)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:649)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
|
||||
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:526)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:511)
|
||||
at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:61)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
|
||||
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
|
||||
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
|
||||
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
|
||||
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
|
||||
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
|
||||
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
|
||||
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:96)
|
||||
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:649)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
|
||||
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
|
||||
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
|
||||
at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:581)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1042)
|
||||
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
|
||||
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
|
||||
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
|
||||
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
|
||||
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
|
||||
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
|
||||
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
|
||||
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
|
||||
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
|
||||
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
|
||||
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
|
||||
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:483)
|
||||
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
|
||||
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
|
||||
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
|
||||
|
||||
!ENTRY org.eclipse.mylyn.tasks.ui 4 0 2014-10-16 20:44:08.029
|
||||
!MESSAGE Could not load repository template extension contributed by org.eclipse.mylyn.bugzilla.ide with connectorKind bugzilla
|
||||
|
||||
!ENTRY org.eclipse.mylyn.tasks.ui 4 0 2014-10-16 20:44:08.029
|
||||
!MESSAGE Could not load repository template extension contributed by org.springsource.ide.eclipse.dashboard.ui with connectorKind jira
|
||||
|
||||
!ENTRY org.eclipse.mylyn.tasks.ui 4 0 2014-10-16 20:44:08.030
|
||||
!MESSAGE Could not load repository template extension contributed by org.springsource.ide.eclipse.dashboard.ui with connectorKind jira
|
||||
|
||||
!ENTRY org.eclipse.ui.workbench 4 2 2014-10-16 20:44:30.651
|
||||
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
|
||||
!STACK 0
|
||||
java.lang.NullPointerException
|
||||
at org.springframework.ide.eclipse.maven.internal.legacyconversion.LegacyProjectChecker.earlyStartup(LegacyProjectChecker.java:36)
|
||||
at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87)
|
||||
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
|
||||
at org.eclipse.ui.internal.Workbench$55.run(Workbench.java:2555)
|
||||
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
|
||||
|
||||
!ENTRY org.eclipse.ui 4 4 2014-10-16 20:44:30.663
|
||||
!MESSAGE Unhandled Exception
|
||||
|
||||
!ENTRY org.springframework.ide.eclipse.maven 4 0 2014-10-16 20:44:30.663
|
||||
!MESSAGE Unable to execute early startup code for an extension
|
||||
!STACK 0
|
||||
java.lang.NullPointerException
|
||||
at org.springframework.ide.eclipse.maven.internal.legacyconversion.LegacyProjectChecker.earlyStartup(LegacyProjectChecker.java:36)
|
||||
at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87)
|
||||
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
|
||||
at org.eclipse.ui.internal.Workbench$55.run(Workbench.java:2555)
|
||||
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
INDEX VERSION 1.127
|
Binary file not shown.
|
@ -0,0 +1,2 @@
|
|||
aj
|
||||
java
|
Binary file not shown.
|
@ -0,0 +1,23 @@
|
|||
INDEX VERSION 1.127+/Users/Elena/tutorials/.metadata/.plugins/org.eclipse.jdt.core
|
||||
4249315662.index
|
||||
1271342938.index
|
||||
272178059.index
|
||||
3712507179.index
|
||||
2996324989.index
|
||||
1833648217.index
|
||||
3302703152.index
|
||||
450555687.index
|
||||
4238209716.index
|
||||
3954040986.index
|
||||
1819685514.index
|
||||
770573466.index
|
||||
156905802.index
|
||||
3004609673.index
|
||||
2545238116.index
|
||||
2326659272.index
|
||||
3266567714.index
|
||||
1384487945.index
|
||||
84777399.index
|
||||
3000285004.index
|
||||
765977872.index
|
||||
3321539481.index
|
Binary file not shown.
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<dirs>
|
||||
<entry loc="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home" stamp="1399236793000"/>
|
||||
<entry loc="/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home" stamp="1395111241000"/>
|
||||
<entry loc="/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home" stamp="1412820975000"/>
|
||||
</dirs>
|
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<typeInfoHistroy/>
|
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<qualifiedTypeNameHistroy/>
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<section name="org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart">
|
||||
<item value="2" key="layout"/>
|
||||
<item value="true" key="group_libraries"/>
|
||||
<item value="<?xml version="1.0" encoding="UTF-8"?>
<packageExplorer group_libraries="1" layout="2" linkWithEditor="0" rootMode="1" workingSetName="Aggregate for window 1413506466605">
<customFilters userDefinedPatternsEnabled="false">
<xmlDefinedFilters>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.StaticsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer_patternFilterId_RemoteSystemsConnections" isEnabled="true"/>
<child filterId="org.eclipse.mylyn.java.ui.MembersFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonSharedProjectsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer_patternFilterId_*_Roo_*.aj" isEnabled="true"/>
<child filterId="org.eclipse.m2e.MavenModuleFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.internal.ui.PackageExplorer.EmptyInnerPackageFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.ClosedProjectsFilter" isEnabled="false"/>
<child filterId="_patternFilterId_*.ajsym" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.EmptyLibraryContainerFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.PackageDeclarationFilter" isEnabled="true"/>
<child filterId="org.eclipse.pde.ui.BinaryProjectFilter1" isEnabled="false"/>
<child filterId="org.eclipse.ajdt.ui.editor.outline.AdviceFilter" isEnabled="false"/>
<child filterId="org.eclipse.pde.ui.ExternalPluginLibrariesFilter1" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.LocalTypesFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.FieldsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer_patternFilterId_RemoteSystemsTempFiles" isEnabled="true"/>
<child filterId="org.eclipse.ajdt.ui.editor.outline.PointcutFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonJavaProjectsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer_patternFilterId_.*" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.SyntheticMembersFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.ContainedLibraryFilter" isEnabled="false"/>
<child filterId="org.eclipse.ajdt.ui.editor.outline.DeclarationFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.internal.ui.PackageExplorer.HideInnerClassFilesFilter" isEnabled="true"/>
<child filterId="org.eclipse.ajdt.javamodel.CompilationUnitFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.ImportDeclarationFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonJavaElementFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.LibraryFilter" isEnabled="false"/>
<child filterId="org.eclipse.ajdt.ui.editor.outline.IntroductionFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.CuAndClassFileFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.internal.ui.PackageExplorer.EmptyPackageFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonPublicFilter" isEnabled="false"/>
</xmlDefinedFilters>
</customFilters>
</packageExplorer>" key="memento"/>
|
||||
<item value="1" key="rootMode"/>
|
||||
<item value="false" key="linkWithEditor"/>
|
||||
</section>
|
||||
<section name="BuildPathsPropertyPage">
|
||||
<item value="0" key="pageIndex"/>
|
||||
</section>
|
||||
</section>
|
Binary file not shown.
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<section name="RefactoringWizard.preview">
|
||||
<item value="600" key="width"/>
|
||||
<item value="400" key="height"/>
|
||||
</section>
|
||||
</section>
|
Binary file not shown.
|
@ -0,0 +1,2 @@
|
|||
#Cached timestamps
|
||||
#Thu Oct 16 20:42:58 PET 2014
|
|
@ -0,0 +1,57 @@
|
|||
# RSE DOM Node
|
||||
00-name=MacBook-Pro-de-Elena-Garcia-Miro-P\:local.files
|
||||
01-type=FilterPool
|
||||
03-attr.default=true
|
||||
03-attr.deletable=true
|
||||
03-attr.id=local.files
|
||||
03-attr.nonRenamable=false
|
||||
03-attr.owningParentName=null
|
||||
03-attr.release=200
|
||||
03-attr.singleFilterStringOnly=false
|
||||
03-attr.singleFilterStringOnlyESet=false
|
||||
03-attr.stringsCaseSensitive=true
|
||||
03-attr.supportsDuplicateFilterStrings=false
|
||||
03-attr.supportsNestedFilters=true
|
||||
03-attr.type=default
|
||||
06-child.00000.00-name=My Home
|
||||
06-child.00000.01-type=Filter
|
||||
06-child.00000.03-attr.default=false
|
||||
06-child.00000.03-attr.filterType=default
|
||||
06-child.00000.03-attr.id=My Home
|
||||
06-child.00000.03-attr.nonChangable=false
|
||||
06-child.00000.03-attr.nonDeletable=false
|
||||
06-child.00000.03-attr.nonRenamable=false
|
||||
06-child.00000.03-attr.promptable=false
|
||||
06-child.00000.03-attr.relativeOrder=0
|
||||
06-child.00000.03-attr.release=200
|
||||
06-child.00000.03-attr.singleFilterStringOnly=false
|
||||
06-child.00000.03-attr.stringsCaseSensitive=true
|
||||
06-child.00000.03-attr.stringsNonChangable=false
|
||||
06-child.00000.03-attr.supportsDuplicateFilterStrings=false
|
||||
06-child.00000.03-attr.supportsNestedFilters=true
|
||||
06-child.00000.06-child.00000.00-name=/Users/Elena/*
|
||||
06-child.00000.06-child.00000.01-type=FilterString
|
||||
06-child.00000.06-child.00000.03-attr.default=false
|
||||
06-child.00000.06-child.00000.03-attr.string=/Users/Elena/*
|
||||
06-child.00000.06-child.00000.03-attr.type=default
|
||||
06-child.00001.00-name=Root
|
||||
06-child.00001.01-type=Filter
|
||||
06-child.00001.03-attr.default=false
|
||||
06-child.00001.03-attr.filterType=default
|
||||
06-child.00001.03-attr.id=Root
|
||||
06-child.00001.03-attr.nonChangable=false
|
||||
06-child.00001.03-attr.nonDeletable=false
|
||||
06-child.00001.03-attr.nonRenamable=false
|
||||
06-child.00001.03-attr.promptable=false
|
||||
06-child.00001.03-attr.relativeOrder=0
|
||||
06-child.00001.03-attr.release=200
|
||||
06-child.00001.03-attr.singleFilterStringOnly=false
|
||||
06-child.00001.03-attr.stringsCaseSensitive=true
|
||||
06-child.00001.03-attr.stringsNonChangable=false
|
||||
06-child.00001.03-attr.supportsDuplicateFilterStrings=false
|
||||
06-child.00001.03-attr.supportsNestedFilters=true
|
||||
06-child.00001.06-child.00000.00-name=/*
|
||||
06-child.00001.06-child.00000.01-type=FilterString
|
||||
06-child.00001.06-child.00000.03-attr.default=false
|
||||
06-child.00001.06-child.00000.03-attr.string=/*
|
||||
06-child.00001.06-child.00000.03-attr.type=default
|
|
@ -0,0 +1,25 @@
|
|||
# RSE DOM Node
|
||||
00-name=Local
|
||||
01-type=Host
|
||||
03-attr.description=
|
||||
03-attr.hostname=LOCALHOST
|
||||
03-attr.offline=false
|
||||
03-attr.promptable=false
|
||||
03-attr.systemType=org.eclipse.rse.systemtype.local
|
||||
03-attr.type=Local
|
||||
06-child.00000.00-name=Local Connector Service
|
||||
06-child.00000.01-type=ConnectorService
|
||||
06-child.00000.03-attr.group=Local Connector Service
|
||||
06-child.00000.03-attr.port=0
|
||||
06-child.00000.03-attr.useSSL=false
|
||||
06-child.00000.06-child.00000.00-name=Local Files
|
||||
06-child.00000.06-child.00000.01-type=SubSystem
|
||||
06-child.00000.06-child.00000.03-attr.hidden=false
|
||||
06-child.00000.06-child.00000.03-attr.type=local.files
|
||||
06-child.00000.06-child.00000.06-child.00000.00-name=MacBook-Pro-de-Elena-Garcia-Miro-P___MacBook-Pro-de-Elena-Garcia-Miro-P\:local.files
|
||||
06-child.00000.06-child.00000.06-child.00000.01-type=FilterPoolReference
|
||||
06-child.00000.06-child.00000.06-child.00000.03-attr.refID=local.files
|
||||
06-child.00000.06-child.00001.00-name=Local Shells
|
||||
06-child.00000.06-child.00001.01-type=SubSystem
|
||||
06-child.00000.06-child.00001.03-attr.hidden=false
|
||||
06-child.00000.06-child.00001.03-attr.type=local.shells
|
|
@ -0,0 +1,7 @@
|
|||
# RSE DOM Node
|
||||
00-name=MacBook-Pro-de-Elena-Garcia-Miro-P
|
||||
01-type=Profile
|
||||
03-attr.defaultPrivate=true
|
||||
03-attr.isActive=true
|
||||
05-ref.00000=FP.local.files_0
|
||||
05-ref.00001=H.local_16
|
|
@ -0,0 +1,70 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<section name="SearchDialog.ScopePart">
|
||||
<item value="0" key="scope"/>
|
||||
</section>
|
||||
<section name="">
|
||||
<item value="1000" key="org.eclipse.search.resultpage.limit"/>
|
||||
</section>
|
||||
<section name="TextSearchPage">
|
||||
<item value="1" key="HISTORY_SIZE"/>
|
||||
<item value="false" key="CASE_SENSITIVE"/>
|
||||
<item value="false" key="REG_EX_SEARCH"/>
|
||||
<item value="false" key="WHOLE_WORD"/>
|
||||
<item value="false" key="SEARCH_DERIVED"/>
|
||||
<section name="EXTENSIONS">
|
||||
<item value="*.xml" key="0"/>
|
||||
</section>
|
||||
<section name="HISTORY0">
|
||||
<item value="true" key="ignoreCase"/>
|
||||
<item value="0" key="scope"/>
|
||||
<item value="false" key="isWholeWord"/>
|
||||
<item value="spring" key="textPattern"/>
|
||||
<item value="false" key="isRegExSearch"/>
|
||||
<list key="fileNamePatterns">
|
||||
<item value="*.xml"/>
|
||||
</list>
|
||||
<list key="workingSets">
|
||||
</list>
|
||||
</section>
|
||||
</section>
|
||||
<section name="org.eclipse.search.text.FileSearchResultPage">
|
||||
<item value="1000" key="org.eclipse.search.resultpage.limit"/>
|
||||
</section>
|
||||
<section name="Search">
|
||||
<list key="Search.processedPageIds">
|
||||
<item value="org.eclipse.rse.internal.files.ui.search.searchPage"/>
|
||||
<item value="org.eclipse.search.internal.ui.text.TextSearchPage"/>
|
||||
<item value="org.eclipse.mylyn.tasks.ui.search.page"/>
|
||||
<item value="org.eclipse.cdt.ui.pdomSearchPage"/>
|
||||
<item value="org.eclipse.egit.ui.commitSearchPage"/>
|
||||
<item value="org.eclipse.jdt.ui.JavaSearchPage"/>
|
||||
<item value="org.eclipse.wst.jsdt.ui.JavaSearchPage"/>
|
||||
<item value="org.eclipse.pde.internal.ui.search.SearchPage"/>
|
||||
<item value="org.springframework.ide.eclipse.beans.ui.search.searchPage"/>
|
||||
<item value="org.springframework.ide.eclipse.aop.ui.matcher.matcherPage"/>
|
||||
</list>
|
||||
<list key="Search.enabledPageIds">
|
||||
<item value="org.eclipse.rse.internal.files.ui.search.searchPage"/>
|
||||
<item value="org.eclipse.search.internal.ui.text.TextSearchPage"/>
|
||||
<item value="org.eclipse.mylyn.tasks.ui.search.page"/>
|
||||
<item value="org.eclipse.cdt.ui.pdomSearchPage"/>
|
||||
<item value="org.eclipse.egit.ui.commitSearchPage"/>
|
||||
<item value="org.eclipse.jdt.ui.JavaSearchPage"/>
|
||||
<item value="org.eclipse.wst.jsdt.ui.JavaSearchPage"/>
|
||||
<item value="org.eclipse.pde.internal.ui.search.SearchPage"/>
|
||||
<item value="org.springframework.ide.eclipse.beans.ui.search.searchPage"/>
|
||||
<item value="org.springframework.ide.eclipse.aop.ui.matcher.matcherPage"/>
|
||||
</list>
|
||||
</section>
|
||||
<section name="SearchDialog">
|
||||
<item value="org.eclipse.search.internal.ui.text.TextSearchPage" key="PREVIOUS_PAGE"/>
|
||||
</section>
|
||||
<section name="DialogBounds_SearchDialog">
|
||||
<item value="1238" key="DIALOG_WIDTH"/>
|
||||
<item value="1|Lucida Grande|11.0|0|COCOA|1|LucidaGrande" key="DIALOG_FONT_NAME"/>
|
||||
<item value="442" key="DIALOG_HEIGHT"/>
|
||||
<item value="-107" key="DIALOG_X_ORIGIN"/>
|
||||
<item value="109" key="DIALOG_Y_ORIGIN"/>
|
||||
</section>
|
||||
</section>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<section name="quick_assist_proposal_size">
|
||||
</section>
|
||||
</section>
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<section name="CleanDialogSettings">
|
||||
<item value="484" key="DIALOG_WIDTH"/>
|
||||
<item value="false" key="TOGGLE_SELECTED"/>
|
||||
<item value="354" key="DIALOG_HEIGHT"/>
|
||||
<item value="542" key="DIALOG_X_ORIGIN"/>
|
||||
<item value="195" key="DIALOG_Y_ORIGIN"/>
|
||||
</section>
|
||||
<section name="org.springsource.ide.eclipse.commons.quicksearch.ui.QuickSearchDialog.DIALOG_SETTINGS">
|
||||
<item value="true" key="CASE_SENSITIVE"/>
|
||||
<item value="spring" key="LAST_QUERY"/>
|
||||
<list key="SASH_WEIGHTS">
|
||||
<item value="833"/>
|
||||
<item value="166"/>
|
||||
</list>
|
||||
<list key="COLUMN_WIDTHS">
|
||||
<item value="40"/>
|
||||
<item value="400"/>
|
||||
<item value="136"/>
|
||||
</list>
|
||||
<section name="DialogBoundsSettings">
|
||||
<item value="600" key="DIALOG_WIDTH"/>
|
||||
<item value="1|Lucida Grande|11.0|0|COCOA|1|LucidaGrande" key="DIALOG_FONT_NAME"/>
|
||||
<item value="500" key="DIALOG_HEIGHT"/>
|
||||
<item value="212" key="DIALOG_X_ORIGIN"/>
|
||||
<item value="51" key="DIALOG_Y_ORIGIN"/>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<section name="org.eclipse.ui.texteditor.FindReplaceDialog">
|
||||
<item value="false" key="isRegEx"/>
|
||||
<item value="spring" key="selection"/>
|
||||
<item value="false" key="casesensitive"/>
|
||||
<item value="false" key="incremental"/>
|
||||
<item value="true" key="wrap"/>
|
||||
<item value="false" key="wholeword"/>
|
||||
<list key="findhistory">
|
||||
<item value="spring"/>
|
||||
</list>
|
||||
<list key="replacehistory">
|
||||
</list>
|
||||
</section>
|
||||
<section name="org.eclipse.ui.texteditor.FindReplaceDialog_dialogBounds">
|
||||
<item value="263" key="DIALOG_WIDTH"/>
|
||||
<item value="1|Lucida Grande|11.0|0|COCOA|1|LucidaGrande" key="DIALOG_FONT_NAME"/>
|
||||
<item value="399" key="DIALOG_HEIGHT"/>
|
||||
<item value="381" key="DIALOG_X_ORIGIN"/>
|
||||
<item value="118" key="DIALOG_Y_ORIGIN"/>
|
||||
</section>
|
||||
</section>
|
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<section name="org.eclipse.ui.internal.QuickAccess">
|
||||
<item value="563" key="dialogHeight"/>
|
||||
<item value="900" key="dialogWidth"/>
|
||||
<list key="textEntries">
|
||||
</list>
|
||||
<list key="orderedElements">
|
||||
</list>
|
||||
<list key="orderedProviders">
|
||||
</list>
|
||||
<list key="textArray">
|
||||
</list>
|
||||
</section>
|
||||
<section name="NewWizardAction">
|
||||
<item value="com.springsource.sts.wizard.template" key="NewWizardSelectionPage.STORE_SELECTED_ID"/>
|
||||
<list key="NewWizardSelectionPage.STORE_EXPANDED_CATEGORIES_ID">
|
||||
<item value="org.springframework.ide.eclipse.beans.ui.wizards.category"/>
|
||||
</list>
|
||||
</section>
|
||||
<section name="ShowViewDialog">
|
||||
<item value="308" key="DIALOG_WIDTH"/>
|
||||
<item value="1|Lucida Grande|11.0|0|COCOA|1|LucidaGrande" key="DIALOG_FONT_NAME"/>
|
||||
<item value="org.eclipse.wst.server.ui.ServersView" key="ShowViewDialog.STORE_SELECTED_VIEW_ID"/>
|
||||
<item value="415" key="DIALOG_HEIGHT"/>
|
||||
<item value="358" key="DIALOG_X_ORIGIN"/>
|
||||
<item value="108" key="DIALOG_Y_ORIGIN"/>
|
||||
<list key="ShowViewDialog.STORE_EXPANDED_CATEGORIES_ID">
|
||||
<item value="org.jboss.tools.seam.ui"/>
|
||||
<item value="org.eclipse.wst.server.ui"/>
|
||||
</list>
|
||||
</section>
|
||||
</section>
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<workingSetManager>
|
||||
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1413510241684_0" label="Window Working Set" name="Aggregate for window 1413506466605"/>
|
||||
</workingSetManager>
|
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
</section>
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?><cache><entry expirationTime="1413593231335" lastModified="1412151818000" location="2039846003.cache" uri="http://www.springframework.org/schema/beans/spring-beans.xsd"/><entry expirationTime="1413593236574" lastModified="1412151822000" location="-1798692377.cache" uri="http://www.springframework.org/schema/context/spring-context.xsd"/><entry expirationTime="1413593233034" lastModified="1412151832000" location="1968467275.cache" uri="http://www.springframework.org/schema/mvc/spring-mvc.xsd"/><entry expirationTime="1413593234626" lastModified="1412151818000" location="-1067935324.cache" uri="http://www.springframework.org/schema/beans/spring-beans-4.1.xsd"/><entry expirationTime="1413593430490" lastModified="1387221072000" location="1040705443.cache" uri="http://www.springframework.org/schema/security/spring-security-3.2.xsd"/><entry expirationTime="1413593235499" lastModified="1412151818000" location="-1038726925.cache" uri="http://www.springframework.org/schema/tool/spring-tool-4.1.xsd"/><entry expirationTime="1413593426758" lastModified="1412151818000" location="547547444.cache" uri="http://www.springframework.org/schema/beans/spring-beans-4.0.xsd"/></cache>
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<typeInfoHistroy/>
|
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<qualifiedTypeNameHistroy/>
|
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<monitors/>
|
|
@ -0,0 +1,3 @@
|
|||
#
|
||||
#Thu Oct 16 20:44:26 PET 2014
|
||||
task-tag-projects-already-scanned=
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<section name="contentassistsize">
|
||||
</section>
|
||||
</section>
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<section name="searchSection">
|
||||
<item value="Search JBoss Community" key="initialMessage"/>
|
||||
<list key="searchKey">
|
||||
</list>
|
||||
</section>
|
||||
</section>
|
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<aop-reference-model/>
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,816 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>Spring</title>
|
||||
<link rel="alternate" href="https://spring.io/blog" />
|
||||
<link rel="self" href="https://spring.io/blog.atom" />
|
||||
<id>http://spring.io/blog.atom</id>
|
||||
<icon>https://spring.io/favicon.ico</icon>
|
||||
<updated>2014-10-15T13:20:00Z</updated>
|
||||
<entry>
|
||||
<title>Whats new in Spring Data Evans?</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/10/15/whats-new-in-spring-data-evans" />
|
||||
<category term="engineering" label="Engineering" />
|
||||
<author>
|
||||
<name>Christoph Strobl</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-09-17:1764</id>
|
||||
<updated>2014-10-15T13:20:00Z</updated>
|
||||
<content type="html"><p>Spring Data Release <a href="https://spring.io/blog/2014/09/09/spring-data-release-train-evans-goes-ga">Evans</a> has been around for a while and it's more than time to finally introduce you to the latest and greatest features we shipped with it.</p>
|
||||
|
||||
<p>There's a lot to cover since major enhancements have gone into the commons module. Those changes already have made it into some store modules and will go on and sneak their way into others over time, too. All of them are already available for at least <a href="http://projects.spring.io/spring-data-jpa/">Spring Data JPA</a>. That said, lets jump right in.</p>
|
||||
|
||||
<h2>
|
||||
<a name="user-content-advanced-support-for-java-8" class="anchor" href="#advanced-support-for-java-8" aria-hidden="true"><span class="octicon octicon-link"></span></a>Advanced support for Java 8</h2>
|
||||
|
||||
<p>Java8 has now been around for a while and previous Spring Data release trains already added fundamental support for some of those. With the Evans release train we extended the support significantly.</p>
|
||||
|
||||
<p>Java 8's <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Optional.html"><code>Optional</code></a> has been a supported return since the <a href="https://spring.io/blog/2014/05/21/what-s-new-in-spring-data-dijkstra">Dijkstra release</a> freeing you of having <code>null</code> checks spread across your code. We simply wrap and unwrap values for you when used as return types with repositories.</p>
|
||||
|
||||
<p>As of the Evans release <a href="http://docs.oracle.com/javase/tutorial/java/IandI/defaultmethods.html">default methods</a> can be used in repository interfaces to e.g. forward parts of the parameters handed into the method to other query methods.</p>
|
||||
|
||||
<div class="highlight highlight-java"><pre><span class="kd">interface</span> <span class="nc">PersonRepository</span> <span class="kd">extends</span> <span class="n">Repository</span><span class="o">&lt;</span><span class="n">Person</span><span class="o">,</span> <span class="n">Long</span><span class="o">&gt;</span> <span class="o">{</span>
|
||||
|
||||
<span class="n">Optional</span><span class="o">&lt;</span><span class="n">Customer</span><span class="o">&gt;</span> <span class="nf">findByLastname</span><span class="o">(</span><span class="n">String</span> <span class="n">lastname</span><span class="o">);</span>
|
||||
|
||||
<span class="k">default</span> <span class="n">Optional</span><span class="o">&lt;</span><span class="n">Customer</span><span class="o">&gt;</span> <span class="nf">findByLastname</span><span class="o">(</span><span class="n">Customer</span> <span class="n">customer</span><span class="o">)</span> <span class="o">{</span>
|
||||
<span class="k">return</span> <span class="nf">findByLastname</span><span class="o">(</span><span class="n">customer</span> <span class="o">==</span> <span class="kc">null</span> <span class="o">?</span> <span class="kc">null</span> <span class="o">:</span> <span class="n">customer</span><span class="o">.</span><span class="na">getLastname</span><span class="o">());</span>
|
||||
<span class="o">}</span>
|
||||
<span class="o">}</span>
|
||||
</pre></div>
|
||||
|
||||
<h2>
|
||||
<a name="user-content-enhanced-multi-store-support" class="anchor" href="#enhanced-multi-store-support" aria-hidden="true"><span class="octicon octicon-link"></span></a>Enhanced multi-store support</h2>
|
||||
|
||||
<p>Configuring your application to make use of different Spring Data modules has not been without issues so far. E.g. you might want to combine JPA and MongoDB where <code>Customer</code> happens to be a JPA Entity while <code>Order</code> is a MongoDB Document both persisted via according repository interfaces.</p>
|
||||
|
||||
<div class="highlight highlight-java"><pre><span class="nd">@Entity</span>
|
||||
<span class="kd">class</span> <span class="nc">Customer</span> <span class="o">{</span>
|
||||
|
||||
<span class="nd">@Id</span> <span class="nd">@GeneratedValue</span> <span class="n">Long</span> <span class="n">id</span><span class="o">;</span>
|
||||
<span class="n">String</span> <span class="n">firstname</span><span class="o">,</span> <span class="n">lastname</span><span class="o">;</span>
|
||||
<span class="c1">// ...</span>
|
||||
<span class="o">}</span>
|
||||
|
||||
<span class="nd">@Document</span>
|
||||
<span class="kd">class</span> <span class="nc">Order</span> <span class="o">{</span>
|
||||
|
||||
<span class="nd">@Id</span> <span class="n">String</span> <span class="n">id</span><span class="o">;</span>
|
||||
<span class="n">Long</span> <span class="n">customerId</span><span class="o">;</span>
|
||||
<span class="n">Date</span> <span class="n">orderDate</span><span class="o">;</span>
|
||||
<span class="c1">// ...</span>
|
||||
<span class="o">}</span>
|
||||
|
||||
<span class="kd">interface</span> <span class="nc">CustomerRepository</span> <span class="kd">extends</span> <span class="n">CrudRepository</span><span class="o">&lt;</span><span class="n">Customer</span><span class="o">,</span> <span class="n">Long</span><span class="o">&gt;</span> <span class="o">{}</span>
|
||||
|
||||
<span class="kd">interface</span> <span class="nc">OrderRepository</span> <span class="kd">extends</span> <span class="n">CrudRepository</span><span class="o">&lt;</span><span class="n">Order</span><span class="o">,</span> <span class="n">String</span><span class="o">&gt;</span> <span class="o">{}</span>
|
||||
</pre></div>
|
||||
|
||||
<p>Until the Spring Data Evans release you had to manually configure the repository setup for MongoDB and JPA to mutually exclude the interfaces not relevant for the given store. Users usually used separate packages for that.</p>
|
||||
|
||||
<p>Now the repository setup detects that multiple Spring Data modules are on the classpath, and automatically restricts the repository scanning and inspect the domain type used by a given repository for store specific annotations such as <code>@Entity</code> and <code>@Document</code> to determine the concrete implementation they belong to. E.g. the Spring Data MongoDB module would drop the (accidentally) detected <code>CustomerRepository</code> as we don't find an <code>@Document</code> annotation.</p>
|
||||
|
||||
<h3>
|
||||
<a name="user-content-statically-limiting-results" class="anchor" href="#statically-limiting-results" aria-hidden="true"><span class="octicon octicon-link"></span></a>Statically limiting results</h3>
|
||||
|
||||
<p>Dynamically limiting results is no new concept since Spring Data has had <code>Pagable</code> as abstraction since its inception and I bet nearly every Spring Data user is already familiar with something like this:</p>
|
||||
|
||||
<div class="highlight highlight-java"><pre><span class="n">List</span><span class="o">&lt;</span><span class="n">Person</span><span class="o">&gt;</span> <span class="nf">findByLastname</span><span class="o">(</span><span class="n">String</span> <span class="n">lastname</span><span class="o">,</span> <span class="n">Pageable</span> <span class="n">page</span><span class="o">)</span>
|
||||
</pre></div>
|
||||
|
||||
<p>This method declaration provides quite some flexibility: clients define the page number, size and a sort order of the elements they want to access. This is great if these values change dynamically (e.g. when you traverse the result set page by page).</p>
|
||||
|
||||
<p>But what if you're always only interested in e.g. the first 10 results and you always want them to be ordered by lastname? This could've been achieved by statically defining a <code>PageRequest</code> and reusing that for every method invocation. However, that still required the client to hand in the special <code>PageRequest</code>. </p>
|
||||
|
||||
<p>As of Spring Data Evans we now offer you a convenient way to explicitly limit the result set to a certain number of elements by using the keywords <code>top</code> and <code>first</code> followed by an optional positive numeric value (defaulting to 1).</p>
|
||||
|
||||
<div class="highlight highlight-java"><pre><span class="n">List</span><span class="o">&lt;</span><span class="n">Person</span><span class="o">&gt;</span> <span class="nf">findTop10ByLastnameOrderByFirstnameDesc</span><span class="o">(</span><span class="n">String</span> <span class="n">lastname</span><span class="o">);</span>
|
||||
</pre></div>
|
||||
|
||||
<h2>
|
||||
<a name="user-content-mongodb-full-text-search" class="anchor" href="#mongodb-full-text-search" aria-hidden="true"><span class="octicon octicon-link"></span></a>MongoDB Full Text Search</h2>
|
||||
|
||||
<p>The Evans RC1 release introduced basic <a href="https://spring.io/blog/2014/07/17/text-search-your-documents-with-spring-data-mongodb">text index support</a> for MongoDB 2.6. Using <code>@TextIndexed</code> allows you to mark properties you want to have text search enabled for so that we can go on and create the index for you. Note, that placing <code>@TextIndexed</code> on properties referring to complex types will index all properties of that type. Since scoring is a fundamental part of full text search the <code>@TextScore</code> annotation will assert that any full text query returns the documents score allowing you to order them by relevance.</p>
|
||||
|
||||
<div class="highlight highlight-java"><pre><span class="nd">@Document</span>
|
||||
<span class="kd">class</span> <span class="nc">BlogPost</span> <span class="o">{</span>
|
||||
|
||||
<span class="nd">@Id</span> <span class="n">String</span> <span class="n">id</span><span class="o">;</span>
|
||||
<span class="nd">@TextIndexed</span><span class="o">(</span><span class="n">weight</span> <span class="o">=</span> <span class="mi">3</span><span class="o">)</span> <span class="n">String</span> <span class="n">title</span><span class="o">;</span>
|
||||
<span class="nd">@TextIndexed</span><span class="o">(</span><span class="n">weight</span> <span class="o">=</span> <span class="mi">2</span><span class="o">)</span> <span class="n">String</span> <span class="n">content</span><span class="o">;</span>
|
||||
<span class="nd">@TextIndexed</span> <span class="n">List</span><span class="o">&lt;</span><span class="n">String</span><span class="o">&gt;</span> <span class="n">categories</span><span class="o">;</span>
|
||||
<span class="nd">@TextScore</span> <span class="n">Float</span> <span class="n">score</span><span class="o">;</span>
|
||||
<span class="o">}</span>
|
||||
</pre></div>
|
||||
|
||||
<p>That in place, we extended the repository support to accept a <code>TextCriteria</code> instance that will define detailed options about the text search that shall be executed: the terms to be searched for, language options etc.</p>
|
||||
|
||||
<div class="highlight highlight-java"><pre><span class="kd">interface</span> <span class="nc">BlogPostRepository</span> <span class="kd">extends</span> <span class="n">CrudRepository</span><span class="o">&lt;</span><span class="n">BlogPost</span><span class="o">,</span> <span class="n">String</span><span class="o">&gt;</span> <span class="o">{</span>
|
||||
|
||||
<span class="n">Page</span><span class="o">&lt;</span><span class="n">BlogPost</span><span class="o">&gt;</span> <span class="nf">findBy</span><span class="o">(</span><span class="n">TextCriteria</span> <span class="n">criteria</span><span class="o">,</span> <span class="n">Pageable</span> <span class="n">page</span><span class="o">);</span>
|
||||
|
||||
<span class="n">List</span><span class="o">&lt;</span><span class="n">BlogPost</span><span class="o">&gt;</span> <span class="nf">findAllByOrderByScoreDesc</span><span class="o">(</span><span class="n">TextCriteria</span> <span class="n">criteria</span><span class="o">);</span>
|
||||
<span class="o">}</span>
|
||||
</pre></div>
|
||||
|
||||
<p>The first query method is quite straight forward. It executes the given <code>TextCriteria</code> and pages the results. The second query method definition combines the given <code>TextCriteria</code> with a standard criteria definition derived from the method name. This shows that you can freely combine text search with standard query easily.</p>
|
||||
|
||||
<h2>
|
||||
<a name="user-content-mongodb-query-modifiers" class="anchor" href="#mongodb-query-modifiers" aria-hidden="true"><span class="octicon octicon-link"></span></a>MongoDB query modifiers</h2>
|
||||
|
||||
<p>We added <code>@Meta</code> allowing you to define output and behavior of a query. By setting e.g. <code>maxExecutionTime</code> one can define the maximum duration a query may take (in milliseconds). Any execution that exceeds the limit will result in an error. You can also advice MongoDB to only scan through a maximum number of documents and return what has been found until reaching the limit by setting <code>maxScanDocuments</code>, while <code>comment</code> allows you to define text you can search for within the <code>system.profile</code> collection in case you got profiling enabled for your MongoDB instance. </p>
|
||||
|
||||
<div class="highlight highlight-java"><pre><span class="nd">@Meta</span><span class="o">(</span><span class="n">maxExcecutionTime</span> <span class="o">=</span> <span class="mi">100</span><span class="o">,</span> <span class="n">comment</span> <span class="o">=</span> <span class="s">"onlyLimitedTime"</span><span class="o">)</span>
|
||||
<span class="n">List</span><span class="o">&lt;</span><span class="n">Customer</span><span class="o">&gt;</span> <span class="nf">findByFirstname</span><span class="o">(</span><span class="n">String</span> <span class="n">firstname</span><span class="o">);</span>
|
||||
</pre></div>
|
||||
|
||||
<h2>
|
||||
<a name="user-content-configuration-options-for-redis-sentinel" class="anchor" href="#configuration-options-for-redis-sentinel" aria-hidden="true"><span class="octicon octicon-link"></span></a>Configuration options for Redis Sentinel</h2>
|
||||
|
||||
<p>Redis 2.8 introduced high-availability support know as <a href="http://redis.io/topics/sentinel">Sentinels</a>. The Redis module of Spring Data Evans adds support to easily configure connecting to a sentinel setup so that your client will be able to continue working in case of re-elections of master nodes in a Redis cluster.</p>
|
||||
|
||||
<p><code>RedisSentinelConfiguration</code> defines where the Sentiels are located so that the <code>ConnectionFactory</code> can set up pooling accordingly. In case of Jedis it will create a <code>JedisSentinelPool</code> for automatic failover. This means that in case your master node goes down, you'll receive, as soon as the Sentinels agreed on a new master, a connection to the new master without the need of any further interaction. </p>
|
||||
|
||||
<div class="highlight highlight-java"><pre><span class="nd">@Configuration</span>
|
||||
<span class="kd">class</span> <span class="nc">RedisSentinelApplicationConfig</span> <span class="o">{</span>
|
||||
|
||||
<span class="nd">@Bean</span>
|
||||
<span class="n">RedisConnectionFactory</span> <span class="nf">connectionFactory</span><span class="o">()</span> <span class="o">{</span>
|
||||
<span class="k">return</span> <span class="k">new</span> <span class="nf">JedisConnectionFactory</span><span class="o">(</span><span class="n">sentinelConfig</span><span class="o">());</span>
|
||||
<span class="o">}</span>
|
||||
|
||||
<span class="nd">@Bean</span>
|
||||
<span class="n">RedisSentinelConfiguration</span> <span class="nf">sentinelConfig</span><span class="o">()</span> <span class="o">{</span>
|
||||
<span class="k">return</span> <span class="k">new</span> <span class="nf">RedisSentinelConfiguration</span><span class="o">().</span><span class="na">master</span><span class="o">(</span><span class="s">"mymaster"</span><span class="o">)</span>
|
||||
<span class="o">.</span><span class="na">sentinel</span><span class="o">(</span><span class="s">"localhost"</span><span class="o">,</span> <span class="mi">26379</span><span class="o">)</span>
|
||||
<span class="o">.</span><span class="na">sentinel</span><span class="o">(</span><span class="s">"localhost"</span><span class="o">,</span> <span class="mi">26380</span><span class="o">)</span>
|
||||
<span class="o">.</span><span class="na">sentinel</span><span class="o">(</span><span class="s">"localhost"</span><span class="o">,</span> <span class="mi">26381</span><span class="o">);</span>
|
||||
<span class="o">}</span>
|
||||
<span class="o">}</span>
|
||||
</pre></div>
|
||||
|
||||
<p>The upcoming Spring Boot 1.2, will even take this even further by automatically picking up the <code>RedisSentinelConfiguration</code> if present and initialize the <code>RedisConnectionFactory</code> accordingly.</p>
|
||||
|
||||
<h2>
|
||||
<a name="user-content-schema-support-for-solr" class="anchor" href="#schema-support-for-solr" aria-hidden="true"><span class="octicon octicon-link"></span></a>Schema support for Solr</h2>
|
||||
|
||||
<p>Although the <a href="https://cwiki.apache.org/confluence/display/solr/Schema+API">Solr Schema API</a> is not finished yet, we already try to support as much of it as possible. With the Evans release you can now dynamically add missing fields to an existing (managed) schema. To achieve this, we read the existing field definition and compare it against the one derived from the properties of the domain type. To do so we extended the <code>@Indexed</code> annotation a bit. It now allows some fine tuning of the fields to be created as values such as <code>indexed</code>, <code>stored</code> and <code>solrType</code> can be explicitly defined.</p>
|
||||
|
||||
<div class="highlight highlight-java"><pre><span class="nd">@Configuration</span>
|
||||
<span class="nd">@EnableSolrRepositories</span><span class="o">(</span><span class="n">schemaCreationSupport</span> <span class="o">=</span> <span class="kc">true</span><span class="o">)</span>
|
||||
<span class="kd">class</span> <span class="nc">SolrConfiguration</span> <span class="o">{</span>
|
||||
|
||||
<span class="nd">@Bean</span>
|
||||
<span class="n">SolrServer</span> <span class="nf">solrServer</span><span class="o">()</span> <span class="o">{</span>
|
||||
<span class="k">return</span> <span class="k">new</span> <span class="nf">HttpSolrServer</span><span class="o">(</span><span class="s">"http://localhost:8983/solr"</span><span class="o">);</span>
|
||||
<span class="o">}</span>
|
||||
<span class="o">}</span>
|
||||
|
||||
<span class="nd">@SolrDocument</span><span class="o">(</span><span class="n">solrCoreName</span> <span class="o">=</span> <span class="s">"collection1"</span><span class="o">)</span>
|
||||
<span class="kd">class</span> <span class="nc">ManagedProduct</span> <span class="o">{</span>
|
||||
|
||||
<span class="nd">@Id</span> <span class="n">String</span> <span class="n">id</span><span class="o">;</span>
|
||||
<span class="nd">@Indexed</span><span class="o">(</span><span class="n">type</span> <span class="o">=</span> <span class="s">"text_general"</span><span class="o">)</span> <span class="n">String</span> <span class="n">name</span><span class="o">;</span>
|
||||
<span class="nd">@Indexed</span><span class="o">(</span><span class="n">name</span> <span class="o">=</span> <span class="s">"cat"</span><span class="o">)</span> <span class="n">List</span><span class="o">&lt;</span><span class="n">String</span><span class="o">&gt;</span> <span class="n">category</span><span class="o">;</span>
|
||||
<span class="o">}</span>
|
||||
</pre></div>
|
||||
|
||||
<p>As always we are eager to hear from you! Reach out to us on <a href="https://twitter.com/SpringData">Twitter</a>, <a href="http://stackoverflow.com/tags/spring-data">Stackoverflow</a> or <a href="http://jira.spring.io">JIRA</a> to request new features, suggest improvements or report a bug.</p></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>This Week in Spring - Tuesday October 14th, 2014</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/10/14/this-week-in-spring-tuesday-october-14th-2014" />
|
||||
<category term="engineering" label="Engineering" />
|
||||
<author>
|
||||
<name>Josh Long</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-10-14:1789</id>
|
||||
<updated>2014-10-14T18:05:00Z</updated>
|
||||
<content type="html"><p>Welcome to another installment of <em>This Week in Spring</em>! This week I've been at Silicon Valley Code Camp, JAX London and Geekout UK talking to developers about how to build scalable, microservice-centric <a href="http://start.spring.io">Spring Boot</a> applications on <a href="http://cloudfoundry.org/index.html">Cloud Foundry</a>. It's been a lot fun talking to enthusiastic developers (on both sides of the Atlantic!).</p>
|
||||
|
||||
<p>Without further ado, let's get on with the roundup!</p>
|
||||
|
||||
<ul>
|
||||
<li>Spring Boot co-lead Phil Webb just announced the availability of <a href="https://spring.io/blog/2014/10/11/spring-boot-1-2-0-m2-available-now">Spring Boot 1.2.0.M2</a> which includes, among other things, auto-configuration for Jersey, log4j, <code>commons-dbcp</code> support, a smarter <em>disk usage</em> health indicator and improved RabbitMQ support</li>
|
||||
<li>Spring and Groovy Tool Suite lead Martin Lippert <a href="https://spring.io/blog/2014/10/13/spring-tool-suite-and-groovy-grails-tool-suite-3-6-2-released">has just announced the latest and greatest release, 3.6.2</a>, which is a maintenance release that includes an update to the latest Eclipse Luna SR1 installation. </li>
|
||||
<li>Also, Spring Boot co-lead <a href="https://spring.io/blog/2014/10/11/spring-boot-1-1-8-released">Phil Webb just announced the 1.1.8 release of the 1.1x line of Spring Boot</a> which includes a fix for the white-label error page cross-site scripting attack. </li>
|
||||
<li>Federated security is an important part of any distributed, multi-client, (micro)service-oriented system. Spring Security and Spring Security OAuth, in particular, provide a compelling solution. Join the good Dr. Dave Syer for this <a href="https://spring.io/blog/2014/10/01/webinar-security-for-microservices-with-spring-and-oauth2">upcoming webinar on microservice security using OAuth2</a>
|
||||
</li>
|
||||
<li>Matt Stine will be doing a webinar introducing <a href="https://spring.io/blog/2014/10/01/webinar-architecting-for-continuous-delivery-microservices-with-pivotal-cf-and-spring-cloud">how Pivotal Cloud Foundry and Spring Cloud make for a natural solution to building microservices</a>. Don't miss this one!</li>
|
||||
<li>Atlanta, GA, USA Tuesday Oct 21, Learn about Spring, Microservices, and Cloud Foundry at a <a href="http://www.pivotal.io/platform-as-a-service/cloud-platform-roadshow/atlanta#cities">one day roadshow event</a> at Cox communications.</li>
|
||||
<li>Munich, Germany, GA, Thursday Oct 23, Learn about Spring, Microservices, and Cloud Foundry at a <a href="http://www.pivotal.io/platform-as-a-service/cloud-platform-roadshow/munich">one day roadshow event</a> at EMC's office in Ismaning, Germany. </li>
|
||||
<li>I hope you'll join the Vaadin team and I on October 23rd for a <a href="http://spring.io/blog/2014/10/01/webinar-building-bootful-uis-with-spring-boot-and-vaadin">look how to build Spring Boot-powered Vaadin applications</a>.</li>
|
||||
<li>The <em>Java et Moi</em> blog has a nice (French language) post <a href="http://javaetmoi.com/2014/10/annotation-sessionattributes-modelattribute-spring-mvc/">on using Spring MVC's <code>@SessionAttribute</code> annotation</a><br>
|
||||
</li>
|
||||
<li>I <em>really</em> enjoyed this <a href="http://altfatterz.blogspot.com/2014/10/software-configuration-with-spring-boot.html">very thorough look at contributing configuration property values</a> to a Spring Boot application (as <code>--D</code> arguments, environment variables, values in a property file, and values inside of JNDI)</li>
|
||||
<li>Sudhir Dharmadhikari has done a <em>very</em> <a href="http://iwaow.blogspot.com/2014/10/jhipster-super-baby-in-springroos-pouch.html">nice job introducing the <code>yeoman</code> code-generator based JHipster</a>, which builds on top of <a href="http://spring.io/projects/spring-boot">Spring Boot</a>.</li>
|
||||
<li>Our pal Miroslav Kopecky is back, this <a href="http://java.dzone.com/articles/scala-4-spring-mvc-without-0">time with a nice post on using Spring MVC (in Spring 4) using Java configuration</a> (through Scala!)</li>
|
||||
<li>
|
||||
<a href="http://antirez.com/news/79">Redis Cluster is no longer vaporware</a>! Check out the details.</li>
|
||||
<li> Biju Kunjummen has put together <a href="http://java.dzone.com/articles/spring-configuration-and">a very nice post on the two styles of Java configuration</a>: one where you declare dependencies as parameters to the <code>@Bean</code>-annotated bean definition method, and one where you simply reference the other bean by calling a method.<br>
|
||||
</li>
|
||||
<li>Check out this post on <a href="http://architects.dzone.com/articles/using-log4j2-slf4j-spring-4">avoiding dependency conflicts between Log4j2 and SLF4J</a> in a Spring application.</li>
|
||||
<li>Check out this post by Daniel Murygin which includes a detailed walk-through <a href="http://murygin.wordpress.com/2014/10/13/rest-web-service-file-uploads-spring-boot/">on building a fairly non-trivial REST service (that even handles file-uploads!) and client application using Spring Boot</a>?<br>
|
||||
</li>
|
||||
</ul></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Spring Tool Suite and Groovy/Grails Tool Suite 3.6.2 released</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/10/13/spring-tool-suite-and-groovy-grails-tool-suite-3-6-2-released" />
|
||||
<category term="releases" label="Releases" />
|
||||
<author>
|
||||
<name>Martin Lippert</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-10-13:1788</id>
|
||||
<updated>2014-10-13T14:20:11Z</updated>
|
||||
<content type="html"><p>Dear Spring Community,</p>
|
||||
|
||||
<p>I am happy to announce the new release of our Eclipse-based tooling today:
|
||||
The Spring Tool Suite (STS) 3.6.2 and the Groovy/Grails Tool Suite (GGTS) 3.6.2.</p>
|
||||
|
||||
<p>This is a maintenance release that updates STS/GGTS to the just released Eclipse Luna SR1 release. This includes a number of fixes across the various projects that are included in the STS distribution, together with fixes for the Java8 compiler and tooling in Eclipse.</p>
|
||||
|
||||
<p>To download the distributions, please go visit:</p>
|
||||
|
||||
<ul>
|
||||
<li>Spring Tool Suite: <a href="https://spring.io/tools/sts/all">https://spring.io/tools/sts/all</a>
|
||||
</li>
|
||||
<li>Groovy/Grails Tool Suite: <a href="https://spring.io/tools/ggts/all">https://spring.io/tools/ggts/all</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p>Detailed new and noteworthy notes can be found here: <a href="http://docs.spring.io/sts/nan/v362/NewAndNoteworthy.html">STS/GGTS 3.6.2 New &amp; Noteworthy</a>.</p>
|
||||
|
||||
<p>NOTE:
|
||||
Both tool suites ship on top of the latest Eclipse Luna 4.4 SR1 release as 64bit and 32bit based zip files only. There will be no native installers for STS/GGTS anymore.</p>
|
||||
|
||||
<p>Since the 3.6.0 release we shifted towards a slightly changed release schedule, shipping minor releases more frequently. Therefore 3.6.3 is scheduled to ship in December, followed by 3.6.4 in early March 2015, shortly after the Eclipse Luna SR2 release.</p>
|
||||
|
||||
<p>Enjoy!</p></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Spring Boot 1.2.0.M2 Available Now</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/10/11/spring-boot-1-2-0-m2-available-now" />
|
||||
<category term="releases" label="Releases" />
|
||||
<author>
|
||||
<name>Phil Webb</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-10-11:1786</id>
|
||||
<updated>2014-10-11T03:55:53Z</updated>
|
||||
<content type="html"><p>I am pleased to announce that Spring Boot 1.2.0.M2 is available now in the <a href="http://repo.springsource.org/milestone">Spring milestone repository</a>. This release adds a number of improvements and new features over <a href="https://spring.io/blog/2014/09/08/spring-boot-1-2-0-m1-available-now">M1</a>. Highlights include:</p>
|
||||
|
||||
<ul>
|
||||
<li>Full configuration of Jackson <code>ObjectMapper</code> features from your <code>application.properties</code> file.</li>
|
||||
<li>Auto-configuration for Jersey.</li>
|
||||
<li>Support for Log4j2.</li>
|
||||
<li>Support for commons-dbcp2.</li>
|
||||
<li>A new "disk usage" health indicator.</li>
|
||||
<li>Improved RabbitMQ auto-configuration.</li>
|
||||
</ul>
|
||||
|
||||
<p>For a complete list of changes, and for upgrade instructions, see the <a href="http://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.2-Release-Notes">Spring Boot 1.2 Release Notes</a> on the WIKI. The <a href="http://docs.spring.io/spring-boot/docs/1.2.0.M2/reference/htmlsingle/">reference documentation</a> also continues to be updated to cover the new features.</p>
|
||||
|
||||
<p>Thanks again to everyone that has contributed to the release! Please give it a go and report any problems using <a href="http://github.com/spring-projects/spring-boot/issues">the project Issue tracker</a> page.</p></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Spring Boot 1.1.8 released</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/10/11/spring-boot-1-1-8-released" />
|
||||
<category term="releases" label="Releases" />
|
||||
<author>
|
||||
<name>Phil Webb</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-10-11:1785</id>
|
||||
<updated>2014-10-11T00:37:52Z</updated>
|
||||
<content type="html"><p>Spring Boot 1.1.8 has been released and is available now from <a href="http://repo.spring.io/release">repo.spring.io</a> and <a href="http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.springframework.boot%22">Maven Central</a>. </p>
|
||||
|
||||
<p>This maintenance release includes a <a href="https://github.com/spring-projects/spring-boot/commit/3135c7f8aeb30b71eccc02bb0bb3817132c41060">security patch</a> to the "white label error" page which prevents potential cross-site scripting attacks; as such it is a recommended upgrade for all Spring Boot users. For a complete list of changes please refer to the <a href="https://github.com/spring-projects/spring-boot/issues?q=milestone%3A1.1.8">issue tracker</a>.</p>
|
||||
|
||||
<p><a href="http://projects.spring.io/spring-boot/">Project Page</a> | <a href="https://github.com/spring-projects/spring-boot">GitHub</a> | <a href="https://github.com/spring-projects/spring-boot/issues">Issues</a> | <a href="http://docs.spring.io/spring-boot/docs/1.1.8.RELEASE/reference/htmlsingle">Documentation</a></p></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Pivotal at Silicon Valley Code Camp 2014</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/10/10/pivotal-at-silicon-valley-code-camp-2014" />
|
||||
<category term="news" label="News and Events" />
|
||||
<author>
|
||||
<name>Pieter Humphrey</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-10-10:1784</id>
|
||||
<updated>2014-10-10T10:24:00Z</updated>
|
||||
<content type="html"><p>Are you heading to Silicon Valley Code Camp 2014? If you are, we invite all of the Java community members to stop by the Pivotal Booth and talk to Pivotal engineers about the latest innovations in Java SE, in Spring, Groovy, Grails, Redis, RabbitMQ, Tomcat, Cloud Foundry and Hadoop. The exhibit space is open Saturday 8:00am – 5:00pm, and Saturday from 8:30am to 3:30pm, so there should be plenty of time to get your questions answered. See below for details about our sessions and awesome giveaways - come find us! </p>
|
||||
|
||||
<p><strong>SATURDAY - OCTOBER 11, 2014 </strong><br>
|
||||
9:45 AM </p>
|
||||
|
||||
<ul>
|
||||
<li>Josh Long — Spring advocate at Pivotal</li>
|
||||
<li><a href="http://www.siliconvalley-codecamp.com/Session/2014/building-bootiful-applications-with-spring-boot" target="_blank">Building "Bootiful Applications with Spring Boot </a></li>
|
||||
<li>Room: 8401</li>
|
||||
</ul>
|
||||
|
||||
<p>11:45 AM </p>
|
||||
|
||||
<ul>
|
||||
<li>John Hann, — Pivotal</li>
|
||||
<li><a href="http://www.siliconvalley-codecamp.com/Session/2014/introducing-ravejs-zero-config-javascript-applications" target="_blank">Introducing Rave.js: Zero-config JavaScript Applications</a></li>
|
||||
<li>Room: 8401</li>
|
||||
</ul>
|
||||
|
||||
<p>1:45 PM </p>
|
||||
|
||||
<ul>
|
||||
<li>Ilayaperumal Gopinathan — Pivotal</li>
|
||||
<li><a href="http://www.siliconvalley-codecamp.com/Session/2014/simplifying-big-data-development-using-spring-xd" target="_blank">Simplifying Big Data development at Spring XD</a></li>
|
||||
<li> Room: 8403</li>
|
||||
</ul>
|
||||
|
||||
<p><strong>SUNDAY - OCTOBER 12, 2014</strong></p>
|
||||
|
||||
<p>9:15 AM </p>
|
||||
|
||||
<ul>
|
||||
<li>Cornelia Davis — Platform Engineer at Pivotal</li>
|
||||
<li><a href="http://www.siliconvalley-codecamp.com/Session/2014/the-self-healing-elastic-runtime-that-is-cloud-foundry">The Self-healing, Elastic Runtime that is Cloud Foundry</a></li>
|
||||
<li>Room: Room: 4302</li>
|
||||
</ul>
|
||||
|
||||
<p>10:45 AM</p>
|
||||
|
||||
<ul>
|
||||
<li>Cornelia Davis — Platform Engineer at Pivotal</li>
|
||||
<li><a href="http://www.siliconvalley-codecamp.com/Session/2014/running-your-spring-apps-in-the-cloud" target="_blank">Running Your Spring Apps in the Cloud</a></li>
|
||||
<li>Room: 4302</li>
|
||||
</ul>
|
||||
|
||||
<p>Visit us at the Pivotal Code Camp booth for technical expert conversations on Cloud Foundry, Spring, Groovy, Grails, Redis, RabbitMQ, Tomcat, Hadoop and much more. </p>
|
||||
|
||||
<p>Also, don't miss the <a href="http://run.pivotal.io">Pivotal Web Services</a> Hoodie Push! <a href="https://spring.io/guides/gs/rest-service/">Build a REST service with Spring Boot</a>, push it live to run.pivotal.io and get a hoodie! You can do it ahead of time, and show it running to us, or use our laptops at the booth. </p>
|
||||
|
||||
<p><a href="https://raw.githubusercontent.com/pieterhumphrey/springio_website_images/master/hoodie.PNG" target="_blank"><img border="0" width="215" height="254" src="https://raw.githubusercontent.com/pieterhumphrey/springio_website_images/master/hoodie.PNG" style="max-width:100%;"></a></p>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p>Save the date for SpringOne2GX 2015! We hope you will mark your calendar and join us again! SpringOne2GX 2015 will be held September 14 - 17, 2015 at the Marriott Marquis in Washington DC.</p></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>This Week in Spring - October 7th, 2014</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/10/08/this-week-in-spring-october-7th-2014" />
|
||||
<category term="engineering" label="Engineering" />
|
||||
<author>
|
||||
<name>Josh Long</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-10-08:1783</id>
|
||||
<updated>2014-10-08T03:49:00Z</updated>
|
||||
<content type="html"><p>Welcome to another installment of <em>This Week in Spring</em>! This week, I've been at the Couchbase Connect conference talking to developers about Spring Data Couchbase (and Spring Boot, Spring XD, Spring Session, and more..). Fun show, fun crowd! Next week, I'll be at <a href="http://jaxlondon.com/2014/speakers/josh-long">JAX London</a> and <a href="http://uk.geekout.ee/speakers/josh-long/">Geekout UK</a>, so be sure to say hi if you're around. </p>
|
||||
|
||||
<p>Now, with that, let's get on to the roundup..</p>
|
||||
|
||||
<ol>
|
||||
<li>The good Dr. Pollack just announced <a href="http://spring.io/blog/2014/10/02/spring-xd-1-0-1-released">the 1.0.1 release of Spring XD</a>, the easiest way to build data-integration and ingestion solutions. It may be only a 1.0.1 release, but make no mistake: there are some very cool features in this release, including improved administrative and administrative UI features. </li>
|
||||
<li>Federated security is an important part of any distributed, multi-client, (micro)service-oriented system. Spring Security and Spring Security OAuth, in particular, provide a compelling solution. Join the good Dr. Dave Syer for this <a href="https://spring.io/blog/2014/10/01/webinar-security-for-microservices-with-spring-and-oauth2">upcoming webinar on microservice security using OAuth2</a>
|
||||
</li>
|
||||
<li>Matt Stine will be doing a webinar introducing <a href="https://spring.io/blog/2014/10/01/webinar-architecting-for-continuous-delivery-microservices-with-pivotal-cf-and-spring-cloud">how Pivotal Cloud Foundry and Spring Cloud make for a natural solution to building microservices</a>. Don't miss this one!</li>
|
||||
<li> Spring and JavaScript ninja Brian Cavalier has written a <em>very</em> interesting post on some of <a href="http://github.com/spring-projects/spring-sync/">the work</a> we're doing towards enabling <a href="http://spring.io/blog/2014/10/08/streaming-json-patch-from-spring-to-a-react-ui">easier differential sync between JavaScript clients and services</a>. This post not only introduces all these exciting new stuff, but also builds on RaveJS, the Spring Boot-inspired approach to JavaScript.</li>
|
||||
<li>I hope you'll join the Vaadin team and I on October 23rd for a <a href="http://spring.io/blog/2014/10/01/webinar-building-bootful-uis-with-spring-boot-and-vaadin">look how to build Spring Boot-powered Vaadin applications</a>.</li>
|
||||
<li>Justin Lee Grant has put together <a href="http://www.justinleegrant.com/?p=489">a good introductory look at Spring Boot</a>.</li>
|
||||
<li>Spring lead Juergen Hoeller just <a href="http://spring.io/blog/2014/10/01/spring-framework-4-1-1-released">announced the 4.1.1 release of Spring framework</a>. This release includes improved <code>Optional</code> handling, a Jackson <code>ObjectMapper</code> builder, some requested JDBC improvements, and much more. </li>
|
||||
<li>The good Dr. Syer just announced <a href="http://spring.io/blog/2014/10/07/spring-cloud-1-0-0-m1-available-now">the first milestone release of the Spring Cloud project</a>. Spring Cloud provides primatives for building microservice and PaaS-centric applications. It builds on top of the Netflix OSS stack and Spring Boot.</li>
|
||||
<li>Karthik Abram put together <a href="http://www.eclecticlogic.com/2014/09/01/classpath-scanning/">a nice post on a hidden gem in Spring: the <code>ClassPathScanningCandidateComponentProvider</code></a> class, which makes it easy to discover beans of a certain type. </li>
|
||||
<li>Nicolas Lejeune has written up a fascinating look at how he managed <a href="http://labs.bsb.com/2014/09/turn-a-legacy-app-into-a-cf-service/">to convert a legacy application (it uses EJB3) and move it to a Cloud Foundry environment</a> </li>
|
||||
<li>Our pal Toshiaki Maki put together <a href="http://github.com/making/spring-boot-blank">his ideal Spring Boot Maven archetype</a>, and <a href="http://twitter.com/making/status/519626091934134272">shared it</a>!<br>
|
||||
</li>
|
||||
<li>Are you a Groovy fan? (who isn't??) Check out Groovy project lead Guillaume LaForge's weekly roundup, <a href="http://t.co/AiDLC6novd"><em>This Week in Groovy</em></a>!</li>
|
||||
<li>Do you want <a href="http://mikusa.blogspot.com/2014/08/debugging-java-applications-on.html">to debug applications deployed on Cloud Foundry</a>? Daniel Mikusa put together a very nice post explaining one approach. </li>
|
||||
</ol></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Streaming JSON Patch from Spring to a React UI</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/10/08/streaming-json-patch-from-spring-to-a-react-ui" />
|
||||
<category term="engineering" label="Engineering" />
|
||||
<author>
|
||||
<name>Brian Cavalier</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-10-07:1782</id>
|
||||
<updated>2014-10-08T01:47:03Z</updated>
|
||||
<content type="html"><p>We're exploring ways to help developers create rich, modern front-ends that integrate easily with Spring back-ends. If you attended SpringOne this year, you've already seen some of the things we've been working on:</p>
|
||||
|
||||
<ol>
|
||||
<li>
|
||||
<a href="https://speakerdeck.com/gregturn/springone2gx-2014-spring-data-rest-data-meets-hypermedia">Hypermedia support in Spring Data REST</a> presented by Greg Turnquist, Oliver Gierke, and Roy Clarkson</li>
|
||||
<li>
|
||||
<a href="http://www.slideshare.net/unscriptable/rave-js-springone-2gx-2014">RaveJS: Spring Boot concepts for JavaScript applications</a> by John Hann</li>
|
||||
<li>
|
||||
<a href="http://www.slideshare.net/briancavalier/differential-sync-and-json-patch-s2-gx-2014">Differential Synchronization and JSON Patch</a> by Craig Walls and me</li>
|
||||
</ol><p>In short, We want to make it easy to communicate efficiently between a Spring back-end and a client and to easily integrate the best and most popular client-side technologies.</p>
|
||||
|
||||
<h2>
|
||||
<a name="user-content-react--streaming-updates" class="anchor" href="#react--streaming-updates" aria-hidden="true"><span class="octicon octicon-link"></span></a>React + streaming updates</h2>
|
||||
|
||||
<p>JSON Patch is a format for sending incremental changes to structured data. I thought it would be interesting to try streaming updates in JSON Patch format via STOMP all the way out to a web UI.</p>
|
||||
|
||||
<p>Craig Walls had already built a simple <a href="https://github.com/habuma/scores">football scores proof of concept</a>, using the new <a href="https://github.com/spring-projects/spring-sync/">Spring Sync</a> project to push score updates to a browser using JSON Patch over STOMP. I was able to take his POC, drop in RaveJS, add client-side reactive streams, and integrate the updates into a <a href="http://facebook.github.io/react/">React</a> UI component.</p>
|
||||
|
||||
<p>You can find the <a href="https://github.com/briancavalier/scores">complete code on github in my rave-most-react branch</a>. The server is unchanged from Craig's original version. The <a href="https://github.com/briancavalier/scores/tree/rave-most-react/src/main/resources/public">web client</a> is where the action is. Have a look at the <a href="https://github.com/briancavalier/scores/blob/rave-most-react/src/main/resources/public/main.js">main.js to get an overall sense of the app</a> before we dive into some specifics.</p>
|
||||
|
||||
<h2>
|
||||
<a name="user-content-starting-out" class="anchor" href="#starting-out" aria-hidden="true"><span class="octicon octicon-link"></span></a>Starting out</h2>
|
||||
|
||||
<p>I used <a href="https://github.com/RaveJS/rave">RaveJS</a> and npm to manage my client side dependencies, so my startup was simple:</p>
|
||||
|
||||
<div class="highlight highlight-sh"><pre>&gt; <span class="nb">cd </span>src/main/resources/public
|
||||
|
||||
&gt; npm init
|
||||
|
||||
&lt;answer a few questions&gt;
|
||||
|
||||
&gt; npm install --save rave most jiff react rave-load-jsx rave-node-process stompjs
|
||||
</pre></div>
|
||||
|
||||
<p>Then I just needed a single script tag in the existing HTML, and I was off to coding!</p>
|
||||
|
||||
<div class="highlight highlight-html"><pre><span class="nt">&lt;script </span><span class="na">src=</span><span class="s">"node_modules/rave/rave.js"</span><span class="nt">&gt;&lt;/script&gt;</span>
|
||||
</pre></div>
|
||||
|
||||
<h2>
|
||||
<a name="user-content-introducing-mostjs" class="anchor" href="#introducing-mostjs" aria-hidden="true"><span class="octicon octicon-link"></span></a>Introducing most.js</h2>
|
||||
|
||||
<p>Thanks to Craig, I already had a stream of updates (in JSON Patch format) flowing to the client over STOMP. I decided that the nicest way to work with the stream of patches would be to (surprise!) <em>actually use a stream</em>.</p>
|
||||
|
||||
<p><a href="https://github.com/cujojs/most">Most.js</a> is cujoJS's new JavaScript reactive streams package. It provides a small, but powerful set of APIs for creating, transforming, and consuming event streams. I used it to wrap up the stompjs API.</p>
|
||||
|
||||
<p>It turns out that there were two STOMP subscriptions: one that carried an initial, complete copy of all the score data, and another that carried all the subsequent changes. I was able to wrap both subscriptions up into a single reactive stream representing "the latest set of scores" by using <a href="https://github.com/cujojs/jiff">jiff.js</a> to apply the JSON Patches as they arrived.</p>
|
||||
|
||||
<p>This bit of code creates a stream from a STOMP subscription to the initial data, takes the first event (a complete snapshot of all scores), and combines it with a second stream containing only JSON Patch updates to produce a view of the scores that changes over time.</p>
|
||||
|
||||
<div class="highlight highlight-js"><pre><span class="kd">function</span> <span class="nx">getScoresStream</span><span class="p">(</span><span class="nx">initDestination</span><span class="p">,</span> <span class="nx">updateDestination</span><span class="p">,</span> <span class="nx">client</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="c1">// Create a stream containing one full copy of the data, and</span>
|
||||
<span class="c1">// flatMap that to a stream containing the time-varying</span>
|
||||
<span class="c1">// current set of scores, by accumulating each patch</span>
|
||||
<span class="c1">// and emitting the updated scores data.</span>
|
||||
<span class="k">return</span> <span class="nx">getInitialDataStream</span><span class="p">(</span><span class="nx">initDestination</span><span class="p">,</span> <span class="nx">client</span><span class="p">)</span>
|
||||
<span class="p">.</span><span class="nx">flatMap</span><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">data</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="k">return</span> <span class="nx">getUpdatesStream</span><span class="p">(</span><span class="nx">updateDestination</span><span class="p">,</span> <span class="nx">client</span><span class="p">,</span> <span class="nx">data</span><span class="p">);</span>
|
||||
<span class="p">});</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="kd">function</span> <span class="nx">getInitialDataStream</span> <span class="p">(</span><span class="nx">initDestination</span><span class="p">,</span> <span class="nx">client</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="c1">// Await a copy of the data from the STOMP subscription</span>
|
||||
<span class="c1">// that is sending the full scores data, then unsubscribe.</span>
|
||||
<span class="k">return</span> <span class="nx">streamFromStompJson</span><span class="p">(</span><span class="nx">initDestination</span><span class="p">,</span> <span class="nx">client</span><span class="p">)</span>
|
||||
<span class="p">.</span><span class="nx">take</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="kd">function</span> <span class="nx">getUpdatesStream</span> <span class="p">(</span><span class="nx">updateDestination</span><span class="p">,</span> <span class="nx">client</span><span class="p">,</span> <span class="nx">data</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="c1">// Incrementally accumulate patches from the STOMP subscription</span>
|
||||
<span class="c1">// that is carrying JSON Patches onto the scores data to produce</span>
|
||||
<span class="c1">// an updated view of the scores.</span>
|
||||
<span class="k">return</span> <span class="nx">streamFromStompJson</span><span class="p">(</span><span class="nx">updateDestination</span><span class="p">,</span> <span class="nx">client</span><span class="p">)</span>
|
||||
<span class="p">.</span><span class="nx">startWith</span><span class="p">([])</span>
|
||||
<span class="p">.</span><span class="nx">scan</span><span class="p">(</span><span class="nx">updateWithJsonPatch</span><span class="p">,</span> <span class="nx">data</span><span class="p">);</span>
|
||||
<span class="p">}</span>
|
||||
</pre></div>
|
||||
|
||||
<p>Most.js also automatically cleans up underlying resources when streams end. It was easy to arrange to unsubscribe from the first subscription after an initial copy of the full scores data had arrived, leaving only one subscription: the changes.</p>
|
||||
|
||||
<h2>
|
||||
<a name="user-content-making-the-ui-with-react" class="anchor" href="#making-the-ui-with-react" aria-hidden="true"><span class="octicon octicon-link"></span></a>Making the UI with React</h2>
|
||||
|
||||
<p>Now that I had a single most.js stream representing the latest scores, I created a <a href="https://github.com/briancavalier/scores/blob/rave-most-react/src/main/resources/public/Scoreboard.jsx">React component to display them</a>. I installed (see above) the <a href="https://github.com/KidkArolis/rave-load-jsx">rave-load-jsx extension</a>, a RaveJS extension created by a community member, which enables direct JSX component loading in RaveJS. All I had to do was create a Scoreboard.jsx file and start coding a simple React scoreboard component.</p>
|
||||
|
||||
<p>React components have an internal <code>state</code> object containing the data that will be used to render the component. All I needed to do was pass the latest scores stream when creating the component, and then have the component observe the stream and update its <code>state</code>. The relevant bit of code is only a couple lines:</p>
|
||||
|
||||
<div class="highlight highlight-js"><pre><span class="c1">// this.props.scores is the scores stream provided when the</span>
|
||||
<span class="c1">// Scoreboard component is created</span>
|
||||
|
||||
<span class="k">this</span><span class="p">.</span><span class="nx">props</span><span class="p">.</span><span class="nx">scores</span><span class="p">.</span><span class="nx">observe</span><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">scores</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="nx">self</span><span class="p">.</span><span class="nx">setState</span><span class="p">({</span> <span class="nx">scores</span><span class="o">:</span> <span class="nx">scores</span> <span class="p">});</span>
|
||||
<span class="p">});</span>
|
||||
</pre></div>
|
||||
|
||||
<p>React took care of automatically keeping the DOM in sync with the <code>state</code>.</p>
|
||||
|
||||
<h2>
|
||||
<a name="user-content-from-bits-to-pixels" class="anchor" href="#from-bits-to-pixels" aria-hidden="true"><span class="octicon octicon-link"></span></a>From bits to pixels</h2>
|
||||
|
||||
<p>This is admittedly a toy app. However, it shows quite a few powerful concepts working together in a very small space, with very little code: small, server-generated deltas flowing over STOMP + WebSocket, to a reactive stream on the client being observed by a React component. Changes are flowing from a Spring back-end through to the UI--bits to pixels, as it were.</p>
|
||||
|
||||
<p>I hope this tiny app also provides a glimpse at the direction we're headed. We want to provide tools and client-side packages that help developers build rich, modern client applications that integrate with leading client-side technologies and Spring back-ends.</p></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Spring Cloud 1.0.0.M1 Available Now</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/10/07/spring-cloud-1-0-0-m1-available-now" />
|
||||
<category term="releases" label="Releases" />
|
||||
<author>
|
||||
<name>Dave Syer</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-10-07:1781</id>
|
||||
<updated>2014-10-07T13:25:00Z</updated>
|
||||
<content type="html"><p><a href="http://projects.spring.io/spring-cloud">Spring Cloud</a> (the new umbrella project announced in September) has reached a milestone, its first, and fresh jars are available in the <a href="http://repo.spring.io/libs-milestone-local">repo.spring.io</a> repository. Spring Cloud is going to follow a "release train" model for releases, a bit like Spring Data, but we haven't got a cool name for this one yet, so it's just 1.0.0.M1. The modules that are part of this release are </p>
|
||||
|
||||
<ul>
|
||||
<li><p>Spring Cloud Config: Centralized external configuration management backed by a git repository. The configuration resources map directly to Spring <code>Environment</code> but could be used by non-Spring applications if desired.</p></li>
|
||||
<li><p>Spring Cloud Netflix: Integration with various Netflix OSS components (Eureka, Hystrix, Zuul, Archaius, etc.).</p></li>
|
||||
<li><p>Spring Cloud Bus: An event bus for linking services and service instances together with distributed messaging. Useful for propagating state changes across a cluster (e.g. config change events).</p></li>
|
||||
<li><p>Spring Cloud Security: A set of primitives for building secure applications and services with minimum fuss.</p></li>
|
||||
<li><p>Spring Cloud CLI: Spring Boot CLI plugin for creating Spring Cloud component applications quickly in Groovy.</p></li>
|
||||
<li><p>Spring Cloud Starters: Spring Boot-style starter projects to ease dependency management for consumers of Spring Cloud.</p></li>
|
||||
</ul><p>All of the above have the 1.0.0.M1 release tag, so a good starting point to try it out would be to <a href="http://projects.spring.io/spring-cloud/spring-cloud.html#_installation">install the CLI</a> and run Config Server with this code:</p>
|
||||
|
||||
<div class="highlight highlight-groovy"><pre><span class="nd">@EnableConfigServer</span>
|
||||
<span class="kd">class</span> <span class="nc">ConfigServer</span> <span class="o">{</span>
|
||||
<span class="o">}</span>
|
||||
</pre></div>
|
||||
|
||||
<p>then hit <code>http://localhost:8080/foo/default</code> to see some property sources.</p>
|
||||
|
||||
<p>The <a href="https://github.com/spring-cloud">code</a> is hosted on github, and community contributions are extremely welcome, so get on over there are check it out. There are some neat samples in a separate organization: <a href="https://github.com/spring-cloud-samples">spring-cloud-samples</a>, including a "scripts" project that has git submodules and scripts to get a complete demo system up and running as quickly as possible.</p></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Spring XD 1.0.1 released</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/10/02/spring-xd-1-0-1-released" />
|
||||
<category term="releases" label="Releases" />
|
||||
<author>
|
||||
<name>Mark Pollack</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-10-02:1780</id>
|
||||
<updated>2014-10-02T22:49:48Z</updated>
|
||||
<content type="html"><p>On behalf of the Spring XD team, I am very pleased to announce the general availability of Spring XD 1.0.1! </p>
|
||||
|
||||
<p>This release includes <a href="https://jira.spring.io/secure/ReleaseNote.jspa?projectId=11401&amp;version=14685">bug fixes and enhancements</a> as well as some new features:</p>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/spring-projects/spring-xd/wiki/Application-Configuration#enabling-https">HTTPS access</a> and <a href="https://github.com/spring-projects/spring-xd/wiki/Application-Configuration#enabling-authentication">Authentication</a> to Admin Server</li>
|
||||
<li>
|
||||
<a href="https://github.com/spring-projects/spring-xd/wiki/AdminUI#containers">Cluster</a> and <a href="https://github.com/spring-projects/spring-xd/wiki/AdminUI#streams">Stream</a> views in UI</li>
|
||||
<li>Configure a <a href="https://github.com/spring-projects/spring-xd/wiki/Modules#custom-module-registry">location for custom modules</a>
|
||||
</li>
|
||||
<li><a href="https://github.com/spring-projects/spring-xd/wiki/Sinks#null-sink">Null sink</a></li>
|
||||
</ul><p>You can <a href="http://repo.spring.io/release/org/springframework/xd/spring-xd/1.0.1.RELEASE/spring-xd-1.0.1.RELEASE-dist.zip">download the zip distribution</a> or install on OSX <a href="https://github.com/spring-projects/spring-xd/wiki/Getting-Started#osx-homebrew-installation">using homebrew</a>. On RHEL/CentOs you can <a href="https://github.com/spring-projects/spring-xd/wiki/Getting-Started#redhatcentos-installation">install using yum</a>.</p>
|
||||
|
||||
<p>Feedback is very important, so please get in touch with questions and comments via</p>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="http://stackoverflow.com/questions/tagged/spring-xd">StackOverflow</a> <code>spring-xd</code> tag</li>
|
||||
<li>
|
||||
<a href="https://jira.spring.io/browse/XD/?selectedTab=com.atlassian.jira.jira-projects-plugin:summary-panel">Spring JIRA</a> or <a href="https://github.com/spring-projects/spring-xd/issues">GitHub Issues</a>
|
||||
</li>
|
||||
</ul></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Spring Framework 4.1.1 released</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/10/01/spring-framework-4-1-1-released" />
|
||||
<category term="releases" label="Releases" />
|
||||
<author>
|
||||
<name>Juergen Hoeller</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-10-01:1779</id>
|
||||
<updated>2014-10-01T13:15:00Z</updated>
|
||||
<content type="html"><p>Dear Spring community,</p>
|
||||
|
||||
<p>I'm pleased to announce that Spring Framework 4.1.1 is available now. As the <b>first maintenance release in the 4.1 line</b>, this release contains a wide range of fixes for regressions and other issues reported against 4.1 GA. A big thank you to all the issue reporters out there!</p>
|
||||
|
||||
<p>4.1.1 also comes with a <b>selection of minor enhancements</b>, for example: consistent handling of Java 8's Optional type, a Jackson ObjectMapper builder class with refined defaults, some requested JDBC refinements, as well as <b>specific performance improvements</b>.</p>
|
||||
|
||||
<p><a href="https://jira.spring.io/issues/?jql=project%20%3D%20SPR%20AND%20fixVersion%20%3D%204.1.1%20ORDER%20BY%20issuetype%20ASC">-&gt; List of resolved JIRA issues for Spring Framework 4.1.1</a></p>
|
||||
|
||||
<p>We strongly recommend an immediate upgrade to 4.1.1 for all 4.1 GA users. The Spring Framework team is now working towards <b>Spring Framework 4.1.2 at the end of October</b>, which will be the foundation for the upcoming Spring Boot 1.2 GA release.</p>
|
||||
|
||||
<p>On a related note, along with 4.1.2, we are preparing <b>Spring Framework 4.0.8 as the last 4.0.x maintenance release</b>. If there is anything you'd like to get fixed in the 4.0.x branch still, now is the time to raise it! Otherwise, please upgrade to 4.1.x for ongoing active maintenance.</p>
|
||||
|
||||
<p>Cheers,</p>
|
||||
|
||||
<p>Juergen</p></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>This Week in Spring - September 30, 2014</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/10/01/this-week-in-spring-september-30-2014" />
|
||||
<category term="engineering" label="Engineering" />
|
||||
<author>
|
||||
<name>Josh Long</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-10-01:1774</id>
|
||||
<updated>2014-10-01T03:20:00Z</updated>
|
||||
<content type="html"><p>Welcome to another installment of <em>This Week in Spring!</em> This week <a href="http://spring.io/blog/2014/09/26/pivotal-at-javaone-2014">the Spring team is at JavaOne</a>! There's been, and will be, <em>lots</em> to see! We're also hanging out at the booth, talking to as many users as possible. Check out the link I just give listing all the cool Pivotal (and non-Pivotal) talks at JavaOne. (Ahem. Naturally, I personally would <em>love</em> it if you made <a href="http://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=3693&amp;tclass=popup">my talk - <em>Spring4TW!</em> - tomorrow morning at 8:30am at Parc 55, Cyril Magnin II/III</a>!).</p>
|
||||
|
||||
<p></p><p><a href="https://raw.githubusercontent.com/joshlong/meh/master/javaone2014-boot-twis.jpg" target="_blank"><img src="https://raw.githubusercontent.com/joshlong/meh/master/javaone2014-boot-twis.jpg" style="max-width:100%;"></a></p><p>In addition to IoT, Big Data, and Microservice demos using <a href="http://projects.spring.io/spring-cloud/">NetFlixOSS on Spring</a>, students were doing the coding challenge to build a <a href="https://spring.io/guides/gs/rest-service/">REST service with Spring Boot</a> and pushed to <a href="http://run.pivotal.io">Pivotal Web Services</a> in &lt; 15 minutes to get the <a href="http://preshavedyak.com/">preshavedyak hoodie</a> from American Apparel, and learning about the best PaaS for Java available on the market today; Java 8 / Tomcat 8 support was released just days ago, and there is strong support for Spring, Groovy and Grails.</p><ul>
|
||||
<li>I really liked Michael Plod's <a href="http://spring.io/blog/2014/09/26/webinar-replay-why-i-recommend-spring"><em>Why I Recommend Spring</em> webinar</a>, now available online as a replay</li>
|
||||
<li>Last week, Activiti BPMN2 engine co-founder Joram Barrez and I gave a talk on <a href="http://spring.io/blog/2014/09/26/webinar-replay-process-driven-spring-applications-with-activiti">how to build process (read: workflow) centric Spring applications</a>, also now available online. </li>
|
||||
<li>Tuesday, Oct 21st, 2014 join <a href="https://twitter.com/mstine">Matt Stine</a> for microservice architecture series #2: <a href="http://spring.io/blog/2014/10/01/webinar-architecting-for-continuous-delivery-microservices-with-pivotal-cf-and-spring-cloud">Architecting for Continuous Delivery: Microservices with Pivotal CF and Spring Cloud</a>
|
||||
</li>
|
||||
<li>Thursday, October 23, 2014, 2014 <a href="http://spring.io/blog/2014/10/01/webinar-building-bootful-uis-with-spring-boot-and-vaadin">Building “Bootful” UIs with Spring Boot and Vaadin</a>
|
||||
</li>
|
||||
<li>Tuesday, November 4, 2014 - microservice architecture series #3 - Join <a href="https://twitter.com/david_syer">Dr. Dave Syer</a> on <a href="http://spring.io/blog/2014/10/01/webinar-security-for-microservices-with-spring-and-oauth2">Security for Microservices with Spring and OAuth2</a>
|
||||
</li>
|
||||
<li>Missed microservice architecture #1? Catch the replay of <a href="http://spring.io/blog/2014/09/17/webinar-replay-building-bootiful-microservices-with-spring-boot">Building "Bootiful" Microservices with Spring Boot</a> on the Spring Developer Channel</li>
|
||||
<li>
|
||||
<a href="http://spring.io/blog/2014/09/26/spring-boot-1-1-7-released">Spring Boot 1.1.7 is now available</a>! </li>
|
||||
<li>
|
||||
<a href="http://raymondhlee.wordpress.com/2014/09/20/setup-spring-security-with-active-directory-ldap-in-spring-boot-web-application/">Setup Spring Security with Active Directory LDAP in Spring Boot Web Application</a> (I <em>just</em> got asked about this at the Spring BOF yesterday!)</li>
|
||||
<li>There's been an interesting debate on microservices recently. <a href="http://blog.cleancoder.com/uncle-bob/2014/09/19/MicroServicesAndJars.html">"Uncle" Bob Martin has written up a post claiming that <code>.jar</code>s and Ruby <code>gem</code>s give you the same benefit of microservices</a>. There's a <a href="http://www.giorgiosironi.com/2014/09/microservices-are-not-jars.html">great rebuttal (which I happen to agree with..) by Giorgio Sironi on his blog</a>. There's even a nice wrapup of <a href="http://www.infoq.com/news/2014/09/microservices-shared-libraries?utm_source=infoq&amp;utm_medium=popular_links_homepage">the whole discussion on InfoQ</a>.</li>
|
||||
<li>I really dig <a href="http://blog.pivotal.io/cloud-foundry-pivotal/case-studies-2/platform-wind-tunnel-part-i-heroku">Matt Stine's <em>wind tunnel</em> comparison of PaaSes</a>. Up first: Heroku. I can't wait to see subsequent posts in the series!</li>
|
||||
<li>This post on using Spring Data Redis was published (and included in <em>TWiS</em>..) last year, <a href="http://www.ibm.com/developerworks/library/os-springredis/index.html">but it came up again and I still thnk it's a worthy read</a> </li>
|
||||
<li>The eHarmony blog has a nice post on <a href="http://www.eharmony.com/engineering/spring-batch-admin-the-tricky-parts/#.VCtPFildUpg">how to setup Spring Batch Admin (the tricky parts..)</a>
|
||||
</li>
|
||||
<li>In the <em>you have to see it to beleive it</em> department, did you know there's a <a href="http://bitbucket.org/sglienke/spring4d">Spring for Delphi (Spring4D) project</a>? There are Spring-inspired C++, ColdFusion, JavaScript, .NET, Python, and numerous others. Cool to add this to the list.</li>
|
||||
<li>The Intertech blog has <a href="http://www.intertech.com/Blog/spring-integration-tutorial-part-7-service-activators/">another installment on their <em>epic</em> Spring Integration tutorial</a>. This one's on <em>service activators</em> - basically the Spring Integration escape-hatch so you can call regular Java objects.</li>
|
||||
<li>Benjamin Ball has a great <a href="http://java.dzone.com/articles/getting-started-rabbitmq-and">writeup on using RabbitMQ and Spring</a> </li>
|
||||
<li>Yashwant Chavan has a nice post on building a simple <a href="http://www.technicalkeeda.com/spring/spring-boot-mvc-example">Spring Boot (with Spring MVC) example and editing it in Eclipse</a>. </li>
|
||||
<li>Our pals at Codecentric are at it again! They've just released <a href="http://blog.codecentric.de/en/2014/09/spring-boot-admin-first-official-release/">their first cut of their <em>Spring Boot Admin</em></a>. This looks like something that would fit nicely in the <a href="http://github.com/spring-cloud/">Spring Cloud</a> project... </li>
|
||||
<li>
|
||||
<a href="http://prezi.com/ob4vxjmj_h1f/spring-boot/">This has to be one of the coolest Spring Boot presentations, ever</a>! Careful, I don't recommend watching it full-screen if you get motion sickness! :)</li>
|
||||
<li>Are you stuck on Apache CXF but still want first-class security? This post <a href="http://java.dzone.com/articles/embedded-jetty-and-apache-cxf">looks at how to plugin Spring Security on top of CXF in minutes</a> </li>
|
||||
<li>Biju Kunjummen did a nice job <a href="http://java.dzone.com/articles/spring-1">clarifying the differences between Spring's <code>WebApplicationInitializer</code> and <code>ApplicationContextInitializer</code></a>
|
||||
</li>
|
||||
</ul></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Webinar: Architecting for Continuous Delivery: Microservices with Pivotal CF and Spring Cloud</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/10/01/webinar-architecting-for-continuous-delivery-microservices-with-pivotal-cf-and-spring-cloud" />
|
||||
<category term="news" label="News and Events" />
|
||||
<author>
|
||||
<name>Pieter Humphrey</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-10-01:1776</id>
|
||||
<updated>2014-10-01T02:20:00Z</updated>
|
||||
<content type="html"><p>Speaker: Matt Stine, Pivotal </p>
|
||||
|
||||
<p>Join Matt Stine to hear how you can architect systems that are optimized for continuous delivery, allowing you to innovate and deliver value faster and safer. Microservices, Pivotal CF, and Spring Cloud combine to create an operationalized architecture that enables enterprises to continuously deliver value at scale through rapid, iterative development, and to meet the needs of a mobile-first world.</p>
|
||||
|
||||
<p>Tuesday, Oct 21st, 2014 3:00PM BST (London GMT+01:00) <a href="http://connect.pivotal.io/OSS_Webinar_MicroserviceswithPivotalCFandSpringCloud7AM_Register.html">Register</a></p>
|
||||
|
||||
<p>Tuesday, Oct 21st, 2014 10:00AM PDT (San Francisco GMT-07:00) <a href="http://connect.pivotal.io/OSS_Webinar_MicroserviceswithPivotalCFandSpringCloud10AM_Register.html">Register</a></p></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Webinar: Building “Bootful” UIs with Spring Boot and Vaadin</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/10/01/webinar-building-bootful-uis-with-spring-boot-and-vaadin" />
|
||||
<category term="news" label="News and Events" />
|
||||
<author>
|
||||
<name>Pieter Humphrey</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-10-01:1777</id>
|
||||
<updated>2014-10-01T01:20:00Z</updated>
|
||||
<content type="html"><p>Speaker: Josh Long, Pivotal and Vaadin</p>
|
||||
|
||||
<p> It's been a long day, but you've done it: you've got a Spring Boot powered backend and now you need to build the UI that'll power the workforce and deliver next week. Vaadin, a UI framework that marries the ease of use of server-side Java and the rich, dynamic nature of client-side JavaScript, integrates well with Spring Boot and offers UI polish that would be hard to secure any other way. Join Spring developer advocate Josh Long and Vaadin evangelists for a look at how Vaadin and Spring Boot can get you to production quicker, and easier.</p>
|
||||
|
||||
<p>Thursday, October 23, 2014, 2014 3:00PM BST (London GMT+01:00) <a href="http://connect.pivotal.io/OSS_Webinar_BuildingBootfulUIswithSpringBootandVaadin7AM_Register.html">Register</a></p>
|
||||
|
||||
<p>Thursday, October 23, 2014 10:00AM PDT (San Francisco GMT-07:00) <a href="http://connect.pivotal.io/OSS_Webinar_BuildingBootfulUIswithSpringBootandVaadin10AM_Register.html">Register</a></p></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Webinar: Security for Microservices with Spring and OAuth2</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/10/01/webinar-security-for-microservices-with-spring-and-oauth2" />
|
||||
<category term="news" label="News and Events" />
|
||||
<author>
|
||||
<name>Pieter Humphrey</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-10-01:1778</id>
|
||||
<updated>2014-10-01T01:10:00Z</updated>
|
||||
<content type="html"><p>Speaker: Dave Syer</p>
|
||||
|
||||
<p>Security for Microservices with Spring and OAuth2 OAuth2 is a lightweight security protocol that is well-suited for use with HTTP, the protocol at the heart of many modern architectures. Spring Security OAuth2 has a load of new features, not the least of which being the `@Configuration` support in version 2.0. Combine these with Spring Boot and you have a platform which can get you a secure HTTP service application in about 20 lines of code. This presentation shows how the combination of rapid development and production-ready features in the modern Spring stack are a perfect mixture for developing secure components in a system composed of microservices. We explore the new features in Spring OAuth2, guide you through the choice of which to use and when, and show how easy they are to enable quickly.</p>
|
||||
|
||||
<p>Tuesday, November 4, 2014 3:00PM GMT (London GMT) <a href="http://connect.pivotal.io/OSS_Webinar_SecurityforMicroserviceswithSpringandOAuth2_7AM_Register.html">Register</a></p>
|
||||
|
||||
<p>Tuesday, November 4, 2014 10:00AM PST (San Francisco GMT-08:00) <a href="http://connect.pivotal.io/OSS_Webinar_SecurityforMicroserviceswithSpringandOAuth2_10AM_Register.html">Register</a></p></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Webinar Replay: Why I Recommend Spring</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/09/26/webinar-replay-why-i-recommend-spring" />
|
||||
<category term="news" label="News and Events" />
|
||||
<author>
|
||||
<name>Pieter Humphrey</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-09-26:1773</id>
|
||||
<updated>2014-09-26T14:03:00Z</updated>
|
||||
<content type="html"><p>Speaker: Michael Plod</p>
|
||||
|
||||
<p>Slides: <a href="https://speakerdeck.com/mploed/pivotal-webinar-why-do-i-recommend-spring">https://speakerdeck.com/mploed/pivotal-webinar-why-do-i-recommend-spring</a></p>
|
||||
|
||||
<p>Is Spring the new legacy as quite a few people tell you on their blogs? I disagree on many levels. Throughout this session I will holistically detail without any polemics why I do recommend using the Spring Framework and its ecosystem. Aspects that will be covered include: operational impacts, ecosystem, coding and road maps. This presentation is aimed at IT managers, Architects and Developers alike.</p>
|
||||
|
||||
<p>Learn more about Spring IO: <a href="http://spring.io">http://spring.io</a></p>
|
||||
|
||||
<p>Learn more about Spring IO Platform: <a href="http://spring.io/platform">http://spring.io/platform</a></p>
|
||||
|
||||
<p></p><iframe width="420" height="315" src="//www.youtube.com/embed/z1rpWpSKtT8" frameborder="0" allowfullscreen></iframe></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Webinar Replay: Process Driven Spring Applications with Activiti</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/09/26/webinar-replay-process-driven-spring-applications-with-activiti" />
|
||||
<category term="news" label="News and Events" />
|
||||
<author>
|
||||
<name>Pieter Humphrey</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-09-26:1772</id>
|
||||
<updated>2014-09-26T13:56:00Z</updated>
|
||||
<content type="html"><p>Speakers: Josh Long and Joram Barrez, Activiti </p>
|
||||
|
||||
<p>Slides: <a href="https://speakerdeck.com/joshlong/process-driven-applications-with-spring-boot">https://speakerdeck.com/joshlong/process-driven-applications-with-spring-boot</a> </p>
|
||||
|
||||
<p>Today's applications are complex, distributed systems that - taken together - produce results. Tracking the flow of work through that system, however, becomes increasingly more painful as automated- and human-driven tasks are integrated into business processes. Business can't react to what it can't see. Business can't measure what it can't see. "Workflow" describes the sequence of processes through which a piece of work passes from initiation to completion. Workflow systems, like Activiti, describe and then execute these processes. Activiti is an open-source, Apache 2-licensed workflow engine that works with Spring and Spring Boot. In this webinar, join Spring Developer Advocate Josh Long and Activiti-ninja Joram Barrez for a look at how to distill, describe and reuse complex business processes using Spring (and Spring Boot) and Activiti. </p>
|
||||
|
||||
<p>Learn more about Spring Boot: <a href="http://projects.spring.io/spring-boot">http://projects.spring.io/spring-boot</a> </p>
|
||||
|
||||
<p>Learn more about Activiti below! </p>
|
||||
|
||||
<p>Activiti project page: <a href="http://activiti.org/">http://activiti.org/</a> </p>
|
||||
|
||||
<p>Joram's blog: <a href="http://jorambarrez.com/blog">http://jorambarrez.com/blog</a> </p>
|
||||
|
||||
<p>Activiti documentation: <a href="http://activiti.org/userguide/index.html">http://activiti.org/userguide/index.html</a> </p>
|
||||
|
||||
<p>Activiti Github: <a href="https://github.com/Activiti/Activiti">https://github.com/Activiti/Activiti</a></p>
|
||||
|
||||
<p></p><iframe width="420" height="315" src="//www.youtube.com/embed/0PV_8Lew3vg" frameborder="0" allowfullscreen></iframe></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Pivotal at JavaOne 2014</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/09/26/pivotal-at-javaone-2014" />
|
||||
<category term="news" label="News and Events" />
|
||||
<author>
|
||||
<name>Pieter Humphrey</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-09-25:1770</id>
|
||||
<updated>2014-09-26T05:56:00Z</updated>
|
||||
<content type="html"><p>Are you heading to JavaOne 2014? If you are, we invite all of the Java community members to stop by the Pivotal Booth (Booth Number 5201) and talk to Pivotal engineers about the latest innovations in Java SE, in Spring, Groovy, Grails, Redis, RabbitMQ, Tomcat, Cloud Foundry and Hadoop. The exhibit space is open Monday, Tuesday from 9:30am – 5:30pm, and Wednesday from 9:30am to 4:30pm, so there should be plenty of time to get your questions answered. See below for a map and booth details about our giveaways - come find us! Lots of great stuff at the booth.</p>
|
||||
|
||||
<p>Pivotal technologists are also presenting a lot of sessions as well so be sure to add the following talks to your session builder and reserve a seat:<br>
|
||||
<br>
|
||||
Josh Long — Spring advocate at Pivotal</p>
|
||||
<ul>
|
||||
<li><a href="https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=3868&amp;tclass=popup" target="_blank">The Spring BOF [BOF3868]</a></li>
|
||||
<li><a href="https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=3693&amp;tclass=popup" target="_blank">Spring 4TW! [CON3693]</a></li>
|
||||
</ul><p>Cornelia Davis — Platform Engineer at Pivotal</p>
|
||||
<ul>
|
||||
<li><a href="https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=4327&amp;tclass=popup" target="_blank">Running Your Spring Apps in the Cloud [CON4327]</a></li>
|
||||
</ul><p>John Field — Solutions Architect at Pivotal</p>
|
||||
<ul>
|
||||
<li><a href="https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=3478&amp;tclass=popup" target="_blank">Open Source Identity and Access Management Expert Panel, Part 3 [BOF3478]</a></li>
|
||||
<li><a href="https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=3479&amp;tclass=popup" target="_blank">The Anatomy of a Secure Web Application Using Java [CON3479]</a></li>
|
||||
</ul><p>Guillaume Laforge — Groovy project manager at Pivotal</p>
|
||||
<ul>
|
||||
<li><a href="https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=2939&amp;tclass=popup" target="_blank">Script Bowl 2014: The Battle Rages On [CON2939]</a></li>
|
||||
<li><a href="https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=5996&amp;tclass=popup" target="_blank">Groovy in 2014 and Beyond [CON5996]</a></li>
|
||||
<li><a href="https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=5839&amp;tclass=popup" target="_blank">Groovy in the Light of Java 8 [CON5839]</a></li>
|
||||
</ul><p>Martin Lippert - Principal Software Engineer at Pivotal</p>
|
||||
<ul>
|
||||
<li><a href="https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=1739&amp;tclass=popup" target="_blank">Connecting the Eclipse IDE to the Cloud-Based Era of Developer Tooling [CON1739]</a></li>
|
||||
</ul><p>Oliver Gierke - Spring Data Project Lead at Pivotal</p>
|
||||
<ul>
|
||||
<li><a href="https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=6071&amp;tclass=popup" target="_blank">REST Assured: Hypermedia APIs with Spring MVC [CON6071]</a></li>
|
||||
</ul><p>Cédric Champeau — Senior software engineer in the Groovy team at Pivotal</p>
|
||||
<ul>
|
||||
<li><a href="https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=2425&amp;tclass=popup" target="_blank">Rethinking API Design with Groovy Traits [CON2425]</a></li>
|
||||
</ul><p>Interesting non-Pivotal Sessions</p>
|
||||
<p><a href="https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=1764" target="_blank">Groovy and Grails Puzzlers: As Usual—Traps, Pitfalls, and End Cases[CON1764]</a> <br><a href="https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=4952" target="_blank">Microservices on the JVM: A Practical Overview [CON4952]</a></p>
|
||||
<p><a href="https://oracleus.activeevents.com/2014/connect/sessionDetail.ww?SESSION_ID=9447" target="_blank">Use Java, the Spring Framework, and Oracle Tuxedo to Extend Existing C/C++/COBOL Apps[HOL9447]</a> <br></p><p>Visit us at the booth for technical expert conversations on Cloud Foundry, Spring, Groovy, Grails, Redis, RabbitMQ, Tomcat, Hadoop and much more. We'll have great demos in the booth about:</p>
|
||||
<ul>
|
||||
<li> Java EE and PaaS with <a href="http://www.pivotal.io/platform-as-a-service/pivotal-cf">Cloud Foundry</a> via JBoss and WebLogic Buildpack demos</li>
|
||||
|
||||
<li>Internet of Things, Hadoop with <a href="http://projects.spring.io/spring-xd">Spring XD</a> Demos</li>
|
||||
<li>
|
||||
<a href="http://microservices.io">Microservice Architecture</a> and <a href="http://www.pivotal.io/platform-as-a-service/pivotal-cf">PaaS</a> with <a href="http://projects.spring.io/spring-boot">Spring Boot</a>, <a href="http://projects.spring.io/spring-cloud">Spring Cloud</a> Demos</li>
|
||||
</ul><p><a href="http://run.pivotal.io">Pivotal Web Services</a> Hoodie Push! <a href="https://spring.io/guides/gs/rest-service/">Build a REST service with Spring Boot</a>, push it live to run.pivotal.io and get a hoodie! You can do it ahead of time, and show it running to us, or use our laptops at the booth. </p>
|
||||
<p><a href="https://raw.githubusercontent.com/pieterhumphrey/springio_website_images/master/hoodie.PNG" target="_blank"><img border="0" width="215" height="254" src="https://raw.githubusercontent.com/pieterhumphrey/springio_website_images/master/hoodie.PNG" style="max-width:100%;"></a></p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p>Save the date for SpringOne2GX 2015! We hope you will mark your calendar and join us again! SpringOne2GX 2015 will be held September 14 - 17, 2015 at the Marriott Marquis in Washington DC.</p>
|
||||
<p><a href="https://raw.githubusercontent.com/pieterhumphrey/springio_website_images/master/javaone_booth_pivotal.PNG" target="_blank"><img border="0" width="624" height="398" src="https://raw.githubusercontent.com/pieterhumphrey/springio_website_images/master/javaone_booth_pivotal.PNG" style="max-width:100%;"></a></p>
|
||||
<p><a href="https://github.com/pieterhumphrey/springio_website_images/blob/master/javaone_booth_pivotal2.PNG" target="_blank"><img src="https://github.com/pieterhumphrey/springio_website_images/raw/master/javaone_booth_pivotal2.PNG" width="577" height="441" style="max-width:100%;"></a></p>
|
||||
<p><br></p></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Spring Boot 1.1.7 released</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/09/26/spring-boot-1-1-7-released" />
|
||||
<category term="releases" label="Releases" />
|
||||
<author>
|
||||
<name>Phil Webb</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-09-26:1771</id>
|
||||
<updated>2014-09-26T04:56:15Z</updated>
|
||||
<content type="html"><p>Spring Boot 1.1.7 has been released and is available now from <a href="http://repo.spring.io/release">repo.spring.io</a> and <a href="http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.springframework.boot%22">Maven Central</a>. </p>
|
||||
|
||||
<p>This maintenance release is a recommended upgrade for all Spring Boot users. For a complete list of changes please refer to the <a href="https://github.com/spring-projects/spring-boot/issues?q=milestone%3A1.1.7">issue tracker</a>.</p>
|
||||
|
||||
<p><a href="http://projects.spring.io/spring-boot/">Project Page</a> | <a href="https://github.com/spring-projects/spring-boot">GitHub</a> | <a href="https://github.com/spring-projects/spring-boot/issues">Issues</a> | <a href="http://docs.spring.io/spring-boot/docs/1.1.7.RELEASE/reference/htmlsingle">Documentation</a></p></content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Demo: IoT Realized with Spring XD - The Connected Car</title>
|
||||
<link rel="alternate" href="https://spring.io/blog/2014/09/24/demo-iot-realized-with-spring-xd-the-connected-car" />
|
||||
<category term="engineering" label="Engineering" />
|
||||
<author>
|
||||
<name>Pieter Humphrey</name>
|
||||
</author>
|
||||
<id>tag:spring.io,2014-09-25:1769</id>
|
||||
<updated>2014-09-24T20:59:00Z</updated>
|
||||
<content type="html"><p>Speaker: Derek Beauregard
|
||||
Contributors: Phil Berman, Darrel Sharpe, Michael Minella
|
||||
In this demo we will explore the power of Spring XD in the context of the Internet of Things (IoT). We will look at a solution developed with Spring XD to stream real time analytics from a moving car using open standards. Ingestion of the real time data (location, speed, engine diagnostics, etc), analyzing it to provide highly accurate MPG and vehicle range prediction, as well as providing real time dashboards will all be covered. Watch this demo to get a sense of how Spring XD can serve as a critical building block for the IoT.</p>
|
||||
|
||||
<iframe width="420" height="315" src="//www.youtube.com/embed/qkm2GV57hzY" frameborder="0" allowfullscreen></iframe></content>
|
||||
</entry>
|
||||
</feed>
|
||||
|
|
@ -0,0 +1,291 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
||||
<channel>
|
||||
<title>SpringSource Tool Suites Updates</title>
|
||||
<link>http://www.springsource.com/products/sts</link>
|
||||
<description>This feeds imforms about important updates relevant to users of STS.</description>
|
||||
<generator>Feeder 2.0.7(1195) http://reinventedsoftware.com/feeder/</generator>
|
||||
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
|
||||
<language>en-us</language>
|
||||
<managingEditor>sts@springsource.com</managingEditor>
|
||||
<pubDate>Mon, 13 Oct 2014 10:38:33 +0100</pubDate>
|
||||
<lastBuildDate>Mon, 13 Oct 2014 10:38:33 +0100</lastBuildDate>
|
||||
<atom:link href="http://dist.springsource.com.s3.amazonaws.com/release/STS/doc/updates.xml" rel="self" type="application/rss+xml"/>
|
||||
|
||||
<!-- <item>
|
||||
<title>Thanks for installing STS/GGTS 3.6.0.M1</title>
|
||||
<link>http://static.springsource.org/sts/nan/v360/NewAndNoteworthy-M1.html</link>
|
||||
<description><![CDATA[<form><p><a href="http://gopivotal.com">Pivotal</a> has released the first milestone build of the upcoming next version of
|
||||
the Spring Tool Suite (STS) and the Groovy/Grails Tool Suite (GGTS), the best Eclipse-powered development environment for building Spring, Groovy and Grails powered enterprise application.</p>
|
||||
<p>Please review the following documents:</p>
|
||||
<li bindent="3"><a href="http://static.springsource.org/sts/nan/v360/NewAndNoteworthy-M1.html">3.6.0.M1 New & Noteworthy</a></li><p></p></form>]]></description>
|
||||
<pubDate>Thu, 29 May 2014 12:13:33 +0100</pubDate>
|
||||
<category>version=[3.6.0.201405280524-M1,3.7.0)</category>
|
||||
<category>severity=important</category>
|
||||
<guid isPermaLink="false">thanks-for-installing-sts-360m1</guid>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>STS/GGTS 3.6.0.M1 has been released</title>
|
||||
<link>http://static.springsource.org/sts/nan/v360/NewAndNoteworthy-M1.html</link>
|
||||
<description><![CDATA[<form><p><a href="http://gopivotal.com">Pivotal</a> has released the first milestone build of the upcoming next version of
|
||||
the Spring Tool Suite (STS) and the Groovy/Grails Tool Suite (GGTS), the best Eclipse-powered development environment for building Spring, Groovy and Grails powered enterprise application.</p>
|
||||
<p>Please review the following documents:</p>
|
||||
<li bindent="3"><a href="http://static.springsource.org/sts/nan/v360/NewAndNoteworthy-M1.html">3.6.0.M1 New & Noteworthy</a></li><p></p></form>]]></description>
|
||||
<pubDate>Thu, 29 May 2014 12:12:33 +0100</pubDate>
|
||||
<category>version=[0,3.6.0.201405280524-M1)</category>
|
||||
<category>severity=important</category>
|
||||
<guid isPermaLink="false">sts-360m1-released</guid>
|
||||
</item>
|
||||
-->
|
||||
|
||||
<item>
|
||||
<title>Thanks for installing STS/GGTS 3.6.2</title>
|
||||
<link>http://spring.io/tools</link>
|
||||
<description><![CDATA[<form><p><a href="http://gopivotal.com">Pivotal</a> has released an update to Spring Tool Suite (STS) and Groovy/Grails Tool Suite (GGTS), the best Eclipse-powered development environment for building Spring, Groovy, and Grails powered enterprise application.</p>
|
||||
<p>Please review the following documents:</p>
|
||||
<li bindent="3"><a href="http://static.springsource.org/sts/nan/v362/NewAndNoteworthy.html">3.6.2 New & Noteworthy</a></li><p></p></form>]]></description>
|
||||
<pubDate>Mon, 13 Oct 2014 12:13:33 +0100</pubDate>
|
||||
<category>version=[3.6.2.201410090827-RELEASE,3.6.3)</category>
|
||||
<!-- <category>severity=important</category>-->
|
||||
<guid isPermaLink="false">thanks-for-installing-sts-362</guid>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>STS/GGTS 3.6.2 has been released</title>
|
||||
<link>http://spring.io/tools</link>
|
||||
<description><![CDATA[<form><p><a href="http://gopivotal.com">Pivotal</a> has released an update to Spring Tool Suite (STS) and Groovy/Grails Tool Suite (GGTS), the best Eclipse-powered development environment for building Spring, Groovy, and Grails powered enterprise application.</p><p>It is recommend to update as soon as possible.</p>
|
||||
<p>Please review the following documents:</p>
|
||||
<li bindent="3"><a href="http://static.springsource.org/sts/nan/v362/NewAndNoteworthy.html">3.6.2 New & Noteworthy</a></li><p></p></form>]]></description>
|
||||
<pubDate>Mon, 13 Oct 2014 12:12:33 +0100</pubDate>
|
||||
<category>version=[0,3.6.2.201410090827-RELEASE)</category>
|
||||
<category>severity=important</category>
|
||||
<guid isPermaLink="false">sts-362-released</guid>
|
||||
</item>
|
||||
|
||||
<!--
|
||||
<item>
|
||||
<title>Thanks for installing STS/GGTS 3.4.0</title>
|
||||
<link>http://spring.io/tools</link>
|
||||
<description><![CDATA[<form><p><a href="http://gopivotal.com">Pivotal</a> has released an update to Spring Tool Suite (STS) and Groovy/Grails Tool Suite (GGTS), the best Eclipse-powered development environment for building Spring, Groovy, and Grails powered enterprise application.</p>
|
||||
<p>Please review the following documents:</p>
|
||||
<li bindent="3"><a href="http://static.springsource.org/sts/nan/v340/NewAndNoteworthy.html">3.4.0 New & Noteworthy</a></li><p></p></form>]]></description>
|
||||
<pubDate>Tue, 08 Oct 2013 12:13:33 +0100</pubDate>
|
||||
<category>version=[3.4.0.201310051510-RELEASE,3.5.0)</category>
|
||||
<category>severity=important</category>
|
||||
<guid isPermaLink="false">thanks-for-installing-sts-340</guid>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>STS/GGTS 3.4.0 has been released</title>
|
||||
<link>http://spring.io/tools</link>
|
||||
<description><![CDATA[<form><p><a href="http://gopivotal.com">Pivotal</a> has released an update to Spring Tool Suite (STS) and Groovy/Grails Tool Suite (GGTS), the best Eclipse-powered development environment for building Spring, Groovy, and Grails powered enterprise application.</p><p>It is recommend to update as soon as possible. Users of STS 2.9.x or previous versions should start with a fresh install of STS/GGTS 3.4.0.</p>
|
||||
<p>Please review the following documents:</p>
|
||||
<li bindent="3"><a href="http://static.springsource.org/sts/nan/v340/NewAndNoteworthy.html">3.4.0 New & Noteworthy</a></li><p></p></form>]]></description>
|
||||
<pubDate>Tue, 08 Oct 2013 12:12:33 +0100</pubDate>
|
||||
<category>version=[0,3.4.0.201310051510-RELEASE)</category>
|
||||
<category>severity=important</category>
|
||||
<guid isPermaLink="false">sts-340-released</guid>
|
||||
</item>
|
||||
-->
|
||||
<item>
|
||||
<title>Cloud Foundry Eclipse 1.7.1 released</title>
|
||||
<link>http://www.cloudfoundry.com</link>
|
||||
<description><![CDATA[<form><p><a href="http://pivotal.io">Pivotal</a> has released Cloud Foundry Eclipse version 1.7.1 which features various application deployment and home page navigation improvements, and a new Cloud Routes wizard for browsing and deleting application routes. Java 7 is a required Execution Environment.</p></form>]]></description>
|
||||
<pubDate>Tue, 16 Sep 2014 10:38:33 +0100</pubDate>
|
||||
<!-- <category>version=2.9.0</category> -->
|
||||
<!-- <category>severity=important</category> -->
|
||||
<category>bundle=!org.cloudfoundry.ide.eclipse.feature.group</category>
|
||||
<guid isPermaLink="false">cloud-foundry-integration-171-released</guid>
|
||||
</item>
|
||||
|
||||
<!--
|
||||
<item>
|
||||
<title>Cloud Foundry Integration for Eclipse 1.3.0 released</title>
|
||||
<link>http://www.cloudfoundry.com</link>
|
||||
<description><![CDATA[<form><p><a href="http://springsource.com">SpringSource</a> has released the fifth release of the Eclipse integration for VMware<a href="http://www.cloudfoundry.com">Cloud Foundry</a>, including support for Micro Cloud Foundry, incremental update performance improvements and debugging support for Java/Spring applications running on Micro Cloud Foundry, using tunnels to services directly from within your IDE, and the new support for standalone applications.</p>
|
||||
<p>Cloud Foundry is the industry's first open platform as a service. Run your Spring, Rails and Node.js applications. Deploy from your IDE or command line.</p>
|
||||
<li bindent="3"><a href="http://docs.cloudfoundry.com/tools/STS/sts-eclipse.html">Getting Started with Eclipse/STS and Cloud Foundry</a></li>
|
||||
<li bindent="3"><a href="https://github.com/SpringSource/eclipse-integration-cloudfoundry">Cloud Foundry Integration for Eclipse at GitHub</a></li>
|
||||
<li bindent="3"><a href="http://start.cloudfoundry.com/getting-started.html">Getting Started with Cloud Foundry</a></li>
|
||||
<li bindent="3"><a href="http://forum.springsource.org/forumdisplay.php?f=32">Community support forum</a></li><p></p></form>]]></description>
|
||||
<pubDate>Fri, 12 Oct 2012 10:38:33 +0100</pubDate>
|
||||
<category>version=2.9.0</category>
|
||||
<category>severity=important</category>
|
||||
<category>bundle=!org.cloudfoundry.ide.eclipse.feature.group</category>
|
||||
<guid isPermaLink="false">cloud-foundry-integration-130-released</guid>
|
||||
</item>
|
||||
-->
|
||||
<!--
|
||||
<item>
|
||||
<title>Cloud Foundry Integration for Eclipse 1.0 released</title>
|
||||
<link>http://www.cloudfoundry.com</link>
|
||||
<description><![CDATA[<form><p><a href="http://springsource.com">SpringSource</a> has just released the first release of the Eclipse integration for VMware<a href="http://www.cloudfoundry.com">Cloud Foundry</a>, including support for Micro Cloud Foundry, incremental update performance improvements and debugging support for Java/Spring applications running on Micro Cloud Foundry.</p>
|
||||
<p>Cloud Foundry is the industry's first open platform as a service. Run your Spring, Rails and Node.js applications. Deploy from your IDE or command line.</p>
|
||||
<li bindent="3"><a href="http://start.cloudfoundry.com/getting-started.html">Getting Started with Cloud Foundry</a></li>
|
||||
<li bindent="3"><a href="http://www.youtube.com/watch?v=XcI-2V-mmmw">On Youtube: Getting Started with STS and Cloud Foundry</a></li>
|
||||
<li bindent="3"><a href="http://forum.springsource.org/forumdisplay.php?f=32">Community support forum</a></li><p></p></form>]]></description>
|
||||
<pubDate>Fri, 23 Mar 2012 10:38:33 +0100</pubDate>
|
||||
<category>version=2.9.0</category>
|
||||
<category>severity=important</category>
|
||||
<category>bundle=!org.cloudfoundry.ide.eclipse.feature.group</category>
|
||||
<guid isPermaLink="false">cloud-foundry-integration-100-released</guid>
|
||||
</item>
|
||||
-->
|
||||
<!--
|
||||
<item>
|
||||
<title>Cloud Foundry support now available</title>
|
||||
<link>http://www.cloudfoundry.com</link>
|
||||
<description><![CDATA[<form><p><a href="http://springsource.com">SpringSource</a> has just released Eclipse support for VMware<a href="http://www.cloudfoundry.com">Cloud Foundry</a>.</p>
|
||||
<p>Cloud Foundry is the industry's first open platform as a service. Run your Spring, Rails and Node.js applications. Deploy from your IDE or command line.</p>
|
||||
<li bindent="3"><a href="http://dist.springsource.com/release/STS/doc/STS-cloud_foundry.pdf">Documentation for the Eclipse support</a></li>
|
||||
<li bindent="3"><a href="http://forum.springsource.org/forumdisplay.php?f=32">Community support forum</a></li><p></p></form>]]></description>
|
||||
<pubDate>Tue, 12 Apr 2011 10:38:33 +0100</pubDate>
|
||||
<category>version=2.5.1</category>
|
||||
<category>severity=important</category>
|
||||
<category>bundle=!com.cloudfoundry.sts.server.feature.group</category>
|
||||
<guid isPermaLink="false">cloud-foundry-support-m1-released</guid>
|
||||
</item>
|
||||
-->
|
||||
<item>
|
||||
<title>Patch released to fix a Xerces classloading issue</title>
|
||||
<link>https://issuetracker.springsource.com/browse/STS-1672</link>
|
||||
<description><![CDATA[<form><p><a href="http://springsource.com">SpringSource</a> has just published a patch to fix a severe issue in STS that causes parsing of Spring XML files to fail with a Xerces classloading issue.</p><p>It is recommend to update as soon as possible. The feature patch is available from the STS Dashboard -> Extensions tab.</p>
|
||||
<p>Get to get more details about the issue please read the following bug entries:</p>
|
||||
<li bindent="3"><a href="https://issuetracker.springsource.com/browse/STS-1672">Issue in the STS JIRA</a></li>
|
||||
<li bindent="3"><a href="http://forum.springsource.org/showthread.php?t=105729">Community forum discussion</a></li><p>We apologize that this patch did not make it into the 2.6.0 release of STS.</p></form>]]></description>
|
||||
<pubDate>Mon, 21 Mar 2011 10:38:33 +0100</pubDate>
|
||||
<category>version=[2.6.0.201103160035-RELEASE,2.7.0.201105101000-M1)</category>
|
||||
<category>severity=important</category>
|
||||
<category>bundle=!org.springframework.ide.eclipse.patch.feature.feature.group</category>
|
||||
<guid isPermaLink="false">patch-STS1672-released</guid>
|
||||
</item>
|
||||
<!-- <item>
|
||||
<title>Patch released to fix bug in Eclipse WTP</title>
|
||||
<link>https://bugs.eclipse.org/bugs/show_bug.cgi?id=327801</link>
|
||||
<description><![CDATA[<form><p><a href="http://springsource.com">SpringSource</a> has just published a patch to fix a severe issue in Eclipse WTP that causes complete UI freezes on restarts.</p><p>It is recommend to update as soon as possible. The feature patch is available from the STS Dashboard -> Extensions tab.</p>
|
||||
<p>Get to get more details about the issue please read the following bug entries:</p>
|
||||
<li bindent="3"><a href="https://issuetracker.springsource.com/browse/STS-1456">Issue in the STS JIRA</a></li>
|
||||
<li bindent="3"><a href="https://issues.sonatype.org/browse/MECLIPSEWTP-62">Issue in M2Eclipse JIRA</a></li>
|
||||
<li bindent="3"><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=327801">Issue in Eclipse' bugzilla</a></li><p>We apologize that this patch did not make it into the 2.5.2 release of STS.</p></form>]]></description>
|
||||
<pubDate>Tue, 11 Jan 2011 10:38:33 +0100</pubDate>
|
||||
<category>version=[2.5.1,2.6.0.201102251000-M2)</category>
|
||||
<category>severity=important</category>
|
||||
<category>bundle=!org.eclipse.wst.common_core.feature.patch_327801.feature.group</category>
|
||||
<guid isPermaLink="false">patch-327801-released</guid>
|
||||
</item>
|
||||
-->
|
||||
<!-- <item>
|
||||
<title>VMforce announced - Cloud for Java</title>
|
||||
<link>http://www.springsource.org/node/2504</link>
|
||||
<description><![CDATA[<form><p>Today <a href="http://www.vmware.com">VMware</a> announced a new enterprise Platform as a Service (PaaS), VMforce, that is designed to run Spring-based applications. Rod Johnson provides an explanation about the technology in his latest <a href="http://blog.springsource.com/2010/04/27/vmforce-spring-cloud/">blog post</a> and Steve Herrod talks about the <a href="http://blogs.vmware.com/console/2010/04/vmforce-and-vmwares-open-paas-strategy.html">VMware PaaS vision</a>.</p><p>VMforce will be available for developer preview in the second half of this year.</p><p>Make sure to check out the <a href="http://www.springsource.org/node/2504">video</a> of the announcement.</p></form>]]></description>
|
||||
<pubDate>Wed, 28 Apr 2010 10:00:33 +0100</pubDate>
|
||||
<category>version=2.3.2</category>
|
||||
<category>severity=important</category>
|
||||
<guid isPermaLink="false">understanding-vmforce</guid>
|
||||
</item>-->
|
||||
<!-- <item>
|
||||
<title>Thanks for installing STS 2.5.2.SR1</title>
|
||||
<link>http://www.springsource.com/products/sts</link>
|
||||
<description><![CDATA[<form><p><a href="http://springsource.com">SpringSource</a> has released an update to SpringSource Tool Suite (STS), the best Eclipse-powered development environment for building Spring, Groovy and Grails powered enterprise application.</p>
|
||||
<p>Please review the following documents:</p>
|
||||
<li bindent="3"><a href="http://download.springsource.com/release/STS/doc/STS-new_and_noteworthy.pdf">New & Noteworthy</a></li>
|
||||
<li bindent="3"><a href="http://download.springsource.com/release/STS/doc/STS-feature_comparison.pdf">Feature Comparison</a></li><p></p></form>]]></description>
|
||||
<pubDate>Mon, 28 Feb 2011 10:36:33 +0100</pubDate>
|
||||
<category>version=[2.5.2.201102261000-SR1,2.6.0.201101271000-M1)</category>
|
||||
<category>severity=important</category>
|
||||
<guid isPermaLink="false">thanks-for-installing-sts-252sr1</guid>
|
||||
</item>
|
||||
<item>
|
||||
<title>STS 2.5.2.SR1 has been released</title>
|
||||
<link>http://www.springsource.com/products/sts</link>
|
||||
<description><![CDATA[<form><p><a href="http://springsource.com">SpringSource</a> has released an update to SpringSource Tool Suite (STS), the best Eclipse-powered development environment for building Spring, Groovy and Grails powered enterprise application.</p><p>It is recommend to update as soon as possible.</p>
|
||||
<p>Please review the following documents:</p>
|
||||
<li bindent="3"><a href="http://download.springsource.com/release/STS/doc/STS-new_and_noteworthy.pdf">New & Noteworthy</a></li>
|
||||
<li bindent="3"><a href="http://download.springsource.com/release/STS/doc/STS-feature_comparison.pdf">Feature Comparison</a></li><p></p></form>]]></description>
|
||||
<pubDate>Mon, 28 Feb 2011 10:37:33 +0100</pubDate>
|
||||
<category>version=[0,2.5.2.201102261000-SR1)</category>
|
||||
<category>severity=important</category>
|
||||
<guid isPermaLink="false">sts-252sr1-released</guid>
|
||||
</item> -->
|
||||
<!-- <item>
|
||||
<title>STS 2.5.0.RELEASE will be released soon</title>
|
||||
<link>http://www.springsource.com/products/sts</link>
|
||||
<description><![CDATA[<form><p><a href="http://springide.org">SpringSource</a> will release an update to SpringSource Tool Suite (STS), the best Eclipse-powered development environment for building Spring, Groovy and Grails powered enterprise application. It is recommended to update to this version as soon as possible. </p>
|
||||
<p>Please review the following documents:</p>
|
||||
<li bindent="3"><a href="http://download.springsource.com/release/STS/doc/STS-new_and_noteworthy.pdf">New & Noteworthy</a></li>
|
||||
<li bindent="3"><a href="http://download.springsource.com/release/STS/doc/STS-feature_comparison.pdf">Feature Comparison</a></li><p></p></form>]]></description>
|
||||
<pubDate>Sun, 24 Oct 2010 10:10:33 +0100</pubDate>
|
||||
<category>version=[0,2.5.0.201010241000-RELEASE)</category>
|
||||
<category>severity=important</category>
|
||||
<guid isPermaLink="false">sts-250GA-released</guid>
|
||||
</item>-->
|
||||
<!-- <item>
|
||||
<title>Spring Roo 1.1.0 - now available from the Extension install</title>
|
||||
<link>http://www.springsource.org/node/2399</link>
|
||||
<description><![CDATA[<form><p>The STS extension install has been updated to provide access to the GA release of Spring Roo 1.0.2. To install Roo 1.0.2 into your STS installation click the 'Extension' tab from below and select the 'Spring Roo' entry for installation.</p><p>If you previously installed Roo from the Extension Install please select 'Find Updates' instead.</p></form>]]></description>
|
||||
<pubDate>Mon, 25 Oct 2010 10:00:33 +0100</pubDate>
|
||||
<category>version=2.3.1</category>
|
||||
<category>severity=important</category>
|
||||
<guid isPermaLink="false">extension-install-updated</guid>
|
||||
</item>
|
||||
<item>
|
||||
<title>Spring Roo 1.0.2 - now available from the Extension install</title>
|
||||
<link>http://www.springsource.org/node/2399</link>
|
||||
<description><![CDATA[<form><p>The STS extension install has been updated to provide access to the GA release of Spring Roo 1.0.2. To install Roo 1.0.2 into your STS installation click the 'Extension' tab from below and select the 'Spring Roo' entry for installation.</p><p>If you previously installed Roo use 'Help -> Check for Updates' instead.</p></form>]]></description>
|
||||
<pubDate>Sun, 21 Feb 2010 16:45:32 +0100</pubDate>
|
||||
<category>version=[0,2.3.1)</category>
|
||||
<category>severity=important</category>
|
||||
<guid isPermaLink="false">extension-install-updated</guid>
|
||||
</item>-->
|
||||
<!-- <item>
|
||||
<title>Groovy-Eclipse 2.0.0 is final</title>
|
||||
<link>http://docs.codehaus.org/display/GROOVY/Groovy-Eclipse+2.0.0+New+and+Noteworthy</link>
|
||||
<description><![CDATA[<form><p>SpringSource is proud to announce the release of Groovy-Eclipse 2.0.0.</p><p>This version has much improved support for incremental, cross-language compilation and also comes with lots of improvements for editing Groovy code. A full list of features and bug fixes is available in the <a href="http://docs.codehaus.org/display/GROOVY/Groovy-Eclipse+2.0.0+New+and+Noteworthy">New & Noteworthy</a>.</p>
|
||||
<p>The STS extension install has been updated to provide access to the GA release of Groovy-Eclipse 2.0.0.</p></form>]]></description>
|
||||
<pubDate>Fri, 15 Jan 2010 16:45:31 +0100</pubDate>
|
||||
<category>version=2.3.0</category>
|
||||
<category>severity=important</category>
|
||||
<guid isPermaLink="false">groovy-eclipse-2-0-0-is-final</guid>
|
||||
</item>-->
|
||||
<!-- <item>
|
||||
<title>Spring Roo 1.0.0 - now available from the Extension install</title>
|
||||
<link>http://www.springsource.org/node/2273</link>
|
||||
<description><![CDATA[<form><p>The STS extension install has been updated to provide access to the GA release of Spring Roo 1.0.0. To install Roo 1.0.0 into your STS installation click the 'Extension' tab from below and select the 'Spring Roo' entry for installation.</p><p>If you want to learn more about the release, check out Ben Alex's recent <a href="http://blog.springsource.com/2009/12/31/spring-roo-1-0-0-released/">blog post</a>.</p></form>]]></description>
|
||||
<pubDate>Thu, 31 Dec 2009 16:45:31 +0100</pubDate>
|
||||
<category>version=2.3.0</category>
|
||||
<category>severity=important</category>
|
||||
<guid isPermaLink="false">extension-install-updated</guid>
|
||||
</item>-->
|
||||
<!-- <item>
|
||||
<title>Thanks for installing STS 2.3.0</title>
|
||||
<link>http://www.springsource.org/node/2172</link>
|
||||
<description><![CDATA[<form><p><a href="http://springide.org">SpringSource</a> has released an update to SpringSource Tool Suite (STS), the best Eclipse-powered development environment for building Spring, Groovy and Grails powered enterprise application. It is recommended to update to this version as soon as possible. </p>
|
||||
<p>Please review the following documents:</p>
|
||||
<li bindent="3"><a href="http://download.springsource.com/release/STS/doc/STS-new_and_noteworthy-2.3.0.RELEASE.pdf">New & Noteworthy</a></li>
|
||||
<li bindent="3"><a href="http://download.springsource.com/release/STS/doc/STS-feature_comparison-2.3.0.RELEASE.pdf">Feature Comparison</a></li>
|
||||
</form>]]></description>
|
||||
<pubDate>Thu, 17 Dec 2009 21:45:31 +0100</pubDate>
|
||||
<category>version=2.3.0</category>
|
||||
<guid isPermaLink="false">thanks-for-installing-sts-230</guid>
|
||||
</item>-->
|
||||
<!-- <item>
|
||||
<title>Spring Framework 3.0</title>
|
||||
<link>http://blog.springsource.com/2009/12/16/spring-framework-3-0-goes-ga/</link>
|
||||
<description><![CDATA[<form><p>The SpringSource team is proud to announce the release of Spring 3.0. There are lots of new features and enhancements in this new version, so make sure to download Spring 3.0 and try it out.</p>
|
||||
<p><a href="http://www.springsource.com/download/community">Download</a> | <a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/">Documentation</a> | <a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/">Javadoc API</a> | <a href="http://static.springsource.org/spring/docs/3.0.0.RELEASE/changelog.txt">Change Log</a> | <a href="http://jira.springframework.org/browse/SPR">JIRA</a></p></form>]]></description>
|
||||
<pubDate>Wed, 16 Dec 2009 21:45:52 +0100</pubDate>
|
||||
<category>version=2.1.0</category>
|
||||
<category>severity=important</category>
|
||||
<guid isPermaLink="false">spring-framework-30</guid>
|
||||
</item>-->
|
||||
<!-- <item>
|
||||
<title>STS is Cloud Foundry Ready</title>
|
||||
<link>http://blog.springsource.com/2009/11/10/cloud-foundry-integrated-into-developer-tools/</link>
|
||||
<description><![CDATA[<form><p>With the latest version, you can access SpringSource Cloud Foundry right from within STS and deploy your Spring, Grails and Roo applications to the cloud. Give it a try!</p></form>]]></description>
|
||||
<pubDate>Tue, 01 Dec 2009 21:45:52 +0100</pubDate>
|
||||
<category>version=2.1.0</category>
|
||||
<guid isPermaLink="false">sts-is-cloud-foundry-ready</guid>
|
||||
</item>-->
|
||||
</channel>
|
||||
</rss>
|
|
@ -0,0 +1 @@
|
|||
org.eclipse.core.runtime=1
|
|
@ -0,0 +1,26 @@
|
|||
|
||||
The "REST with Spring" Classes
|
||||
==============================
|
||||
After 5 months of work, here's the Master Class of REST With Spring: <br/>
|
||||
**[>> THE REST WITH SPRING MASTER CLASS](http://www.baeldung.com/rest-with-spring-course?utm_source=github&utm_medium=social&utm_content=tutorials&utm_campaign=rws#master-class)**
|
||||
|
||||
|
||||
Spring Tutorials
|
||||
================
|
||||
|
||||
This project is **a collection of small and focused tutorials** each covering a single and well defined area of development.
|
||||
Most of the tutorial projects are focused on the `Spring Framework` (and `Spring Security`).
|
||||
In additional to Spring, the following technologies are in focus: `core Java`, `Jackson`, `HttpClient`, `Guava`.
|
||||
|
||||
|
||||
Working with the code in Eclipse
|
||||
================================
|
||||
Any IDE can be used to work with the projects, but if you're using Eclipse, consider the following.
|
||||
|
||||
- import the included **formatter** in Eclipse:
|
||||
`https://github.com/eugenp/tutorials/tree/master/eclipse`
|
||||
|
||||
|
||||
CI - Jenkins
|
||||
================================
|
||||
This tutorials project is being built **[>> HERE](https://rest-security.ci.cloudbees.com/job/tutorials/)**
|
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>com.baeldung</groupId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<artifactId>annotations</artifactId>
|
||||
<relativePath>../</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>annotation-processing</artifactId>
|
||||
|
||||
<properties>
|
||||
<auto-service.version>1.0-rc2</auto-service.version>
|
||||
<maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.google.auto.service</groupId>
|
||||
<artifactId>auto-service</artifactId>
|
||||
<version>${auto-service.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
<plugins>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>${maven-compiler-plugin.version}</version>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,132 @@
|
|||
package com.baeldung.annotation.processor;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
import javax.annotation.processing.*;
|
||||
import javax.lang.model.SourceVersion;
|
||||
import javax.lang.model.element.Element;
|
||||
import javax.lang.model.element.TypeElement;
|
||||
import javax.lang.model.type.ExecutableType;
|
||||
import javax.tools.Diagnostic;
|
||||
import javax.tools.JavaFileObject;
|
||||
|
||||
import com.google.auto.service.AutoService;
|
||||
|
||||
@SupportedAnnotationTypes("com.baeldung.annotation.processor.BuilderProperty")
|
||||
@SupportedSourceVersion(SourceVersion.RELEASE_8)
|
||||
@AutoService(Processor.class)
|
||||
public class BuilderProcessor extends AbstractProcessor {
|
||||
|
||||
@Override
|
||||
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
|
||||
for (TypeElement annotation : annotations) {
|
||||
|
||||
Set<? extends Element> annotatedElements = roundEnv.getElementsAnnotatedWith(annotation);
|
||||
|
||||
Map<Boolean, List<Element>> annotatedMethods = annotatedElements.stream()
|
||||
.collect(Collectors.partitioningBy(element ->
|
||||
((ExecutableType) element.asType()).getParameterTypes().size() == 1
|
||||
&& element.getSimpleName().toString().startsWith("set")));
|
||||
|
||||
List<Element> setters = annotatedMethods.get(true);
|
||||
List<Element> otherMethods = annotatedMethods.get(false);
|
||||
|
||||
otherMethods.forEach(element ->
|
||||
processingEnv.getMessager().printMessage(Diagnostic.Kind.ERROR,
|
||||
"@BuilderProperty must be applied to a setXxx method with a single argument", element));
|
||||
|
||||
if (setters.isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
String className = ((TypeElement) setters.get(0).getEnclosingElement()).getQualifiedName().toString();
|
||||
|
||||
Map<String, String> setterMap = setters.stream().collect(Collectors.toMap(
|
||||
setter -> setter.getSimpleName().toString(),
|
||||
setter -> ((ExecutableType) setter.asType())
|
||||
.getParameterTypes().get(0).toString()
|
||||
));
|
||||
|
||||
try {
|
||||
writeBuilderFile(className, setterMap);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private void writeBuilderFile(String className, Map<String, String> setterMap) throws IOException {
|
||||
|
||||
String packageName = null;
|
||||
int lastDot = className.lastIndexOf('.');
|
||||
if (lastDot > 0) {
|
||||
packageName = className.substring(0, lastDot);
|
||||
}
|
||||
|
||||
String simpleClassName = className.substring(lastDot + 1);
|
||||
String builderClassName = className + "Builder";
|
||||
String builderSimpleClassName = builderClassName.substring(lastDot + 1);
|
||||
|
||||
JavaFileObject builderFile = processingEnv.getFiler().createSourceFile(builderClassName);
|
||||
try (PrintWriter out = new PrintWriter(builderFile.openWriter())) {
|
||||
|
||||
if (packageName != null) {
|
||||
out.print("package ");
|
||||
out.print(packageName);
|
||||
out.println(";");
|
||||
out.println();
|
||||
}
|
||||
|
||||
out.print("public class ");
|
||||
out.print(builderSimpleClassName);
|
||||
out.println(" {");
|
||||
out.println();
|
||||
|
||||
out.print(" private ");
|
||||
out.print(simpleClassName);
|
||||
out.print(" object = new ");
|
||||
out.print(simpleClassName);
|
||||
out.println("();");
|
||||
out.println();
|
||||
|
||||
out.print(" public ");
|
||||
out.print(simpleClassName);
|
||||
out.println(" build() {");
|
||||
out.println(" return object;");
|
||||
out.println(" }");
|
||||
out.println();
|
||||
|
||||
setterMap.entrySet().forEach(setter -> {
|
||||
String methodName = setter.getKey();
|
||||
String argumentType = setter.getValue();
|
||||
|
||||
out.print(" public ");
|
||||
out.print(builderSimpleClassName);
|
||||
out.print(" ");
|
||||
out.print(methodName);
|
||||
|
||||
out.print("(");
|
||||
|
||||
out.print(argumentType);
|
||||
out.println(" value) {");
|
||||
out.print(" object.");
|
||||
out.print(methodName);
|
||||
out.println("(value);");
|
||||
out.println(" return this;");
|
||||
out.println(" }");
|
||||
out.println();
|
||||
});
|
||||
|
||||
out.println("}");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
package com.baeldung.annotation.processor;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Target(ElementType.METHOD)
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
public @interface BuilderProperty {
|
||||
}
|
|
@ -0,0 +1,51 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<artifactId>annotations</artifactId>
|
||||
<groupId>com.baeldung</groupId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<relativePath>../</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>annotation-user</artifactId>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.baeldung</groupId>
|
||||
<artifactId>annotation-processing</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.12</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
<plugins>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.5.1</version>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,29 @@
|
|||
package com.baeldung.annotation;
|
||||
|
||||
import com.baeldung.annotation.processor.BuilderProperty;
|
||||
|
||||
public class Person {
|
||||
|
||||
private int age;
|
||||
|
||||
private String name;
|
||||
|
||||
public int getAge() {
|
||||
return age;
|
||||
}
|
||||
|
||||
@BuilderProperty
|
||||
public void setAge(int age) {
|
||||
this.age = age;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@BuilderProperty
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
package com.baeldung.annotation;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class PersonBuilderTest {
|
||||
|
||||
@Test
|
||||
public void whenBuildPersonWithBuilder_thenObjectHasPropertyValues() {
|
||||
|
||||
Person person = new PersonBuilder()
|
||||
.setAge(25)
|
||||
.setName("John")
|
||||
.build();
|
||||
|
||||
assertEquals(25, person.getAge());
|
||||
assertEquals("John", person.getName());
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>parent-modules</artifactId>
|
||||
<groupId>com.baeldung</groupId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>annotations</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<modules>
|
||||
<module>annotation-processing</module>
|
||||
<module>annotation-user</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,2 @@
|
|||
### Relevant Articles:
|
||||
- [Java Annotation Processing and Creating a Builder](http://www.baeldung.com/java-annotation-processing-builder)
|
|
@ -0,0 +1,2 @@
|
|||
### Relevant Articles:
|
||||
- [Introduction to Apache CXF](http://www.baeldung.com/introduction-to-apache-cxf)
|
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>cxf-introduction</artifactId>
|
||||
<parent>
|
||||
<groupId>com.baeldung</groupId>
|
||||
<artifactId>apache-cxf</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
<properties>
|
||||
<cxf.version>3.1.6</cxf.version>
|
||||
<surefire.version>2.19.1</surefire.version>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>exec-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<mainClass>com.baeldung.cxf.introduction.Server</mainClass>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.19.1</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>**/*LiveTest.java</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-frontend-jaxws</artifactId>
|
||||
<version>${cxf.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-transports-http-jetty</artifactId>
|
||||
<version>${cxf.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,16 @@
|
|||
package com.baeldung.cxf.introduction;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.jws.WebService;
|
||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
|
||||
|
||||
@WebService
|
||||
public interface Baeldung {
|
||||
public String hello(String name);
|
||||
|
||||
public String helloStudent(Student student);
|
||||
|
||||
@XmlJavaTypeAdapter(StudentMapAdapter.class)
|
||||
public Map<Integer, Student> getStudents();
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
package com.baeldung.cxf.introduction;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.jws.WebService;
|
||||
|
||||
@WebService(endpointInterface = "com.baeldung.cxf.introduction.Baeldung")
|
||||
public class BaeldungImpl implements Baeldung {
|
||||
private Map<Integer, Student> students = new LinkedHashMap<Integer, Student>();
|
||||
|
||||
public String hello(String name) {
|
||||
return "Hello " + name;
|
||||
}
|
||||
|
||||
public String helloStudent(Student student) {
|
||||
students.put(students.size() + 1, student);
|
||||
return "Hello " + student.getName();
|
||||
}
|
||||
|
||||
public Map<Integer, Student> getStudents() {
|
||||
return students;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.baeldung.cxf.introduction;
|
||||
|
||||
import javax.xml.ws.Endpoint;
|
||||
|
||||
public class Server {
|
||||
public static void main(String args[]) throws InterruptedException {
|
||||
BaeldungImpl implementor = new BaeldungImpl();
|
||||
String address = "http://localhost:8080/baeldung";
|
||||
Endpoint.publish(address, implementor);
|
||||
System.out.println("Server ready...");
|
||||
Thread.sleep(60 * 1000);
|
||||
System.out.println("Server exiting");
|
||||
System.exit(0);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
package com.baeldung.cxf.introduction;
|
||||
|
||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
|
||||
|
||||
@XmlJavaTypeAdapter(StudentAdapter.class)
|
||||
public interface Student {
|
||||
public String getName();
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.baeldung.cxf.introduction;
|
||||
|
||||
import javax.xml.bind.annotation.adapters.XmlAdapter;
|
||||
|
||||
public class StudentAdapter extends XmlAdapter<StudentImpl, Student> {
|
||||
public StudentImpl marshal(Student student) throws Exception {
|
||||
if (student instanceof StudentImpl) {
|
||||
return (StudentImpl) student;
|
||||
}
|
||||
return new StudentImpl(student.getName());
|
||||
}
|
||||
|
||||
public Student unmarshal(StudentImpl student) throws Exception {
|
||||
return student;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.baeldung.cxf.introduction;
|
||||
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
@XmlType(name = "Student")
|
||||
public class StudentImpl implements Student {
|
||||
private String name;
|
||||
|
||||
StudentImpl() {
|
||||
}
|
||||
|
||||
public StudentImpl(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
package com.baeldung.cxf.introduction;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
@XmlType(name = "StudentMap")
|
||||
public class StudentMap {
|
||||
private List<StudentEntry> entries = new ArrayList<StudentEntry>();
|
||||
|
||||
@XmlElement(nillable = false, name = "entry")
|
||||
public List<StudentEntry> getEntries() {
|
||||
return entries;
|
||||
}
|
||||
|
||||
@XmlType(name = "StudentEntry")
|
||||
public static class StudentEntry {
|
||||
private Integer id;
|
||||
private Student student;
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setStudent(Student student) {
|
||||
this.student = student;
|
||||
}
|
||||
|
||||
public Student getStudent() {
|
||||
return student;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
package com.baeldung.cxf.introduction;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.xml.bind.annotation.adapters.XmlAdapter;
|
||||
|
||||
public class StudentMapAdapter extends XmlAdapter<StudentMap, Map<Integer, Student>> {
|
||||
public StudentMap marshal(Map<Integer, Student> boundMap) throws Exception {
|
||||
StudentMap valueMap = new StudentMap();
|
||||
for (Map.Entry<Integer, Student> boundEntry : boundMap.entrySet()) {
|
||||
StudentMap.StudentEntry valueEntry = new StudentMap.StudentEntry();
|
||||
valueEntry.setStudent(boundEntry.getValue());
|
||||
valueEntry.setId(boundEntry.getKey());
|
||||
valueMap.getEntries().add(valueEntry);
|
||||
}
|
||||
return valueMap;
|
||||
}
|
||||
|
||||
public Map<Integer, Student> unmarshal(StudentMap valueMap) throws Exception {
|
||||
Map<Integer, Student> boundMap = new LinkedHashMap<Integer, Student>();
|
||||
for (StudentMap.StudentEntry studentEntry : valueMap.getEntries()) {
|
||||
boundMap.put(studentEntry.getId(), studentEntry.getStudent());
|
||||
}
|
||||
return boundMap;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.baeldung.cxf.introduction;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.ws.Service;
|
||||
import javax.xml.ws.soap.SOAPBinding;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
public class StudentLiveTest {
|
||||
private static QName SERVICE_NAME = new QName("http://introduction.cxf.baeldung.com/", "Baeldung");
|
||||
private static QName PORT_NAME = new QName("http://introduction.cxf.baeldung.com/", "BaeldungPort");
|
||||
|
||||
private Service service;
|
||||
private Baeldung baeldungProxy;
|
||||
private BaeldungImpl baeldungImpl;
|
||||
|
||||
{
|
||||
service = Service.create(SERVICE_NAME);
|
||||
final String endpointAddress = "http://localhost:8080/baeldung";
|
||||
service.addPort(PORT_NAME, SOAPBinding.SOAP11HTTP_BINDING, endpointAddress);
|
||||
}
|
||||
|
||||
@Before
|
||||
public void reinstantiateBaeldungInstances() {
|
||||
baeldungImpl = new BaeldungImpl();
|
||||
baeldungProxy = service.getPort(PORT_NAME, Baeldung.class);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenUsingHelloMethod_thenCorrect() {
|
||||
final String endpointResponse = baeldungProxy.hello("Baeldung");
|
||||
final String localResponse = baeldungImpl.hello("Baeldung");
|
||||
assertEquals(localResponse, endpointResponse);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenUsingHelloStudentMethod_thenCorrect() {
|
||||
final Student student = new StudentImpl("John Doe");
|
||||
final String endpointResponse = baeldungProxy.helloStudent(student);
|
||||
final String localResponse = baeldungImpl.helloStudent(student);
|
||||
assertEquals(localResponse, endpointResponse);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void usingGetStudentsMethod_thenCorrect() {
|
||||
final Student student1 = new StudentImpl("Adam");
|
||||
baeldungProxy.helloStudent(student1);
|
||||
|
||||
final Student student2 = new StudentImpl("Eve");
|
||||
baeldungProxy.helloStudent(student2);
|
||||
|
||||
final Map<Integer, Student> students = baeldungProxy.getStudents();
|
||||
assertEquals("Adam", students.get(1).getName());
|
||||
assertEquals("Eve", students.get(2).getName());
|
||||
}
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>cxf-jaxrs-implementation</artifactId>
|
||||
<parent>
|
||||
<groupId>com.baeldung</groupId>
|
||||
<artifactId>apache-cxf</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<cxf.version>3.1.7</cxf.version>
|
||||
<httpclient.version>4.5.2</httpclient.version>
|
||||
<surefire.version>2.19.1</surefire.version>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>exec-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<mainClass>com.baeldung.cxf.jaxrs.implementation.RestfulServer</mainClass>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.19.1</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>**/*LiveTest.java</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
|
||||
<version>${cxf.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-transports-http-jetty</artifactId>
|
||||
<version>${cxf.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpclient</artifactId>
|
||||
<version>${httpclient.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -0,0 +1,86 @@
|
|||
package com.baeldung.cxf.jaxrs.implementation;
|
||||
|
||||
import javax.ws.rs.*;
|
||||
import javax.ws.rs.core.Response;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@XmlRootElement(name = "Course")
|
||||
public class Course {
|
||||
private int id;
|
||||
private String name;
|
||||
private List<Student> students = new ArrayList<>();
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public List<Student> getStudents() {
|
||||
return students;
|
||||
}
|
||||
|
||||
public void setStudents(List<Student> students) {
|
||||
this.students = students;
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("{studentId}")
|
||||
public Student getStudent(@PathParam("studentId") int studentId) {
|
||||
return findById(studentId);
|
||||
}
|
||||
|
||||
@POST
|
||||
public Response createStudent(Student student) {
|
||||
for (Student element : students) {
|
||||
if (element.getId() == student.getId()) {
|
||||
return Response.status(Response.Status.CONFLICT).build();
|
||||
}
|
||||
}
|
||||
students.add(student);
|
||||
return Response.ok(student).build();
|
||||
}
|
||||
|
||||
@DELETE
|
||||
@Path("{studentId}")
|
||||
public Response deleteStudent(@PathParam("studentId") int studentId) {
|
||||
Student student = findById(studentId);
|
||||
if (student == null) {
|
||||
return Response.status(Response.Status.NOT_FOUND).build();
|
||||
}
|
||||
students.remove(student);
|
||||
return Response.ok().build();
|
||||
}
|
||||
|
||||
private Student findById(int id) {
|
||||
for (Student student : students) {
|
||||
if (student.getId() == id) {
|
||||
return student;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return id + name.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return (obj instanceof Course) && (id == ((Course) obj).getId()) && (name.equals(((Course) obj).getName()));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,72 @@
|
|||
package com.baeldung.cxf.jaxrs.implementation;
|
||||
|
||||
import javax.ws.rs.*;
|
||||
import javax.ws.rs.core.Response;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Path("baeldung")
|
||||
@Produces("text/xml")
|
||||
public class CourseRepository {
|
||||
private Map<Integer, Course> courses = new HashMap<>();
|
||||
|
||||
{
|
||||
Student student1 = new Student();
|
||||
Student student2 = new Student();
|
||||
student1.setId(1);
|
||||
student1.setName("Student A");
|
||||
student2.setId(2);
|
||||
student2.setName("Student B");
|
||||
|
||||
List<Student> course1Students = new ArrayList<>();
|
||||
course1Students.add(student1);
|
||||
course1Students.add(student2);
|
||||
|
||||
Course course1 = new Course();
|
||||
Course course2 = new Course();
|
||||
course1.setId(1);
|
||||
course1.setName("REST with Spring");
|
||||
course1.setStudents(course1Students);
|
||||
course2.setId(2);
|
||||
course2.setName("Learn Spring Security");
|
||||
|
||||
courses.put(1, course1);
|
||||
courses.put(2, course2);
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("courses/{courseId}")
|
||||
public Course getCourse(@PathParam("courseId") int courseId) {
|
||||
return findById(courseId);
|
||||
}
|
||||
|
||||
@PUT
|
||||
@Path("courses/{courseId}")
|
||||
public Response updateCourse(@PathParam("courseId") int courseId, Course course) {
|
||||
Course existingCourse = findById(courseId);
|
||||
if (existingCourse == null) {
|
||||
return Response.status(Response.Status.NOT_FOUND).build();
|
||||
}
|
||||
if (existingCourse.equals(course)) {
|
||||
return Response.notModified().build();
|
||||
}
|
||||
courses.put(courseId, course);
|
||||
return Response.ok().build();
|
||||
}
|
||||
|
||||
@Path("courses/{courseId}/students")
|
||||
public Course pathToStudent(@PathParam("courseId") int courseId) {
|
||||
return findById(courseId);
|
||||
}
|
||||
|
||||
private Course findById(int id) {
|
||||
for (Map.Entry<Integer, Course> course : courses.entrySet()) {
|
||||
if (course.getKey() == id) {
|
||||
return course.getValue();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package com.baeldung.cxf.jaxrs.implementation;
|
||||
|
||||
import org.apache.cxf.endpoint.Server;
|
||||
import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;
|
||||
import org.apache.cxf.jaxrs.lifecycle.SingletonResourceProvider;
|
||||
|
||||
public class RestfulServer {
|
||||
public static void main(String args[]) throws Exception {
|
||||
JAXRSServerFactoryBean factoryBean = new JAXRSServerFactoryBean();
|
||||
factoryBean.setResourceClasses(CourseRepository.class);
|
||||
factoryBean.setResourceProvider(new SingletonResourceProvider(new CourseRepository()));
|
||||
factoryBean.setAddress("http://localhost:8080/");
|
||||
Server server = factoryBean.create();
|
||||
|
||||
System.out.println("Server ready...");
|
||||
Thread.sleep(60 * 1000);
|
||||
System.out.println("Server exiting");
|
||||
server.destroy();
|
||||
System.exit(0);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
package com.baeldung.cxf.jaxrs.implementation;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement(name = "Student")
|
||||
public class Student {
|
||||
private int id;
|
||||
private String name;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return id + name.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return (obj instanceof Student) && (id == ((Student) obj).getId()) && (name.equals(((Student) obj).getName()));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
<Course>
|
||||
<id>2</id>
|
||||
<name>Apache CXF Support for RESTful</name>
|
||||
</Course>
|
|
@ -0,0 +1,4 @@
|
|||
<Student>
|
||||
<id>2</id>
|
||||
<name>Student B</name>
|
||||
</Student>
|
|
@ -0,0 +1,4 @@
|
|||
<Student>
|
||||
<id>3</id>
|
||||
<name>Student C</name>
|
||||
</Student>
|
|
@ -0,0 +1,4 @@
|
|||
<Course>
|
||||
<id>3</id>
|
||||
<name>Apache CXF Support for RESTful</name>
|
||||
</Course>
|
|
@ -0,0 +1,4 @@
|
|||
<Course>
|
||||
<id>1</id>
|
||||
<name>REST with Spring</name>
|
||||
</Course>
|
|
@ -0,0 +1,130 @@
|
|||
package com.baeldung.cxf.jaxrs.implementation;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.net.URL;
|
||||
|
||||
import javax.xml.bind.JAXB;
|
||||
|
||||
import org.apache.http.HttpResponse;
|
||||
import org.apache.http.client.methods.HttpDelete;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
import org.apache.http.client.methods.HttpPut;
|
||||
import org.apache.http.entity.InputStreamEntity;
|
||||
import org.apache.http.impl.client.CloseableHttpClient;
|
||||
import org.apache.http.impl.client.HttpClients;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
public class ServiceLiveTest {
|
||||
private static final String BASE_URL = "http://localhost:8080/baeldung/courses/";
|
||||
private static CloseableHttpClient client;
|
||||
|
||||
@BeforeClass
|
||||
public static void createClient() {
|
||||
client = HttpClients.createDefault();
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void closeClient() throws IOException {
|
||||
client.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenUpdateNonExistentCourse_thenReceiveNotFoundResponse() throws IOException {
|
||||
final HttpPut httpPut = new HttpPut(BASE_URL + "3");
|
||||
final InputStream resourceStream = this.getClass().getClassLoader().getResourceAsStream("non_existent_course.xml");
|
||||
httpPut.setEntity(new InputStreamEntity(resourceStream));
|
||||
httpPut.setHeader("Content-Type", "text/xml");
|
||||
|
||||
final HttpResponse response = client.execute(httpPut);
|
||||
assertEquals(404, response.getStatusLine().getStatusCode());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenUpdateUnchangedCourse_thenReceiveNotModifiedResponse() throws IOException {
|
||||
final HttpPut httpPut = new HttpPut(BASE_URL + "1");
|
||||
final InputStream resourceStream = this.getClass().getClassLoader().getResourceAsStream("unchanged_course.xml");
|
||||
httpPut.setEntity(new InputStreamEntity(resourceStream));
|
||||
httpPut.setHeader("Content-Type", "text/xml");
|
||||
|
||||
final HttpResponse response = client.execute(httpPut);
|
||||
assertEquals(304, response.getStatusLine().getStatusCode());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenUpdateValidCourse_thenReceiveOKResponse() throws IOException {
|
||||
final HttpPut httpPut = new HttpPut(BASE_URL + "2");
|
||||
final InputStream resourceStream = this.getClass().getClassLoader().getResourceAsStream("changed_course.xml");
|
||||
httpPut.setEntity(new InputStreamEntity(resourceStream));
|
||||
httpPut.setHeader("Content-Type", "text/xml");
|
||||
|
||||
final HttpResponse response = client.execute(httpPut);
|
||||
assertEquals(200, response.getStatusLine().getStatusCode());
|
||||
|
||||
final Course course = getCourse(2);
|
||||
assertEquals(2, course.getId());
|
||||
assertEquals("Apache CXF Support for RESTful", course.getName());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenCreateConflictStudent_thenReceiveConflictResponse() throws IOException {
|
||||
final HttpPost httpPost = new HttpPost(BASE_URL + "1/students");
|
||||
final InputStream resourceStream = this.getClass().getClassLoader().getResourceAsStream("conflict_student.xml");
|
||||
httpPost.setEntity(new InputStreamEntity(resourceStream));
|
||||
httpPost.setHeader("Content-Type", "text/xml");
|
||||
|
||||
final HttpResponse response = client.execute(httpPost);
|
||||
assertEquals(409, response.getStatusLine().getStatusCode());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenCreateValidStudent_thenReceiveOKResponse() throws IOException {
|
||||
final HttpPost httpPost = new HttpPost(BASE_URL + "2/students");
|
||||
final InputStream resourceStream = this.getClass().getClassLoader().getResourceAsStream("created_student.xml");
|
||||
httpPost.setEntity(new InputStreamEntity(resourceStream));
|
||||
httpPost.setHeader("Content-Type", "text/xml");
|
||||
|
||||
final HttpResponse response = client.execute(httpPost);
|
||||
assertEquals(200, response.getStatusLine().getStatusCode());
|
||||
|
||||
final Student student = getStudent(2, 3);
|
||||
assertEquals(3, student.getId());
|
||||
assertEquals("Student C", student.getName());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenDeleteInvalidStudent_thenReceiveNotFoundResponse() throws IOException {
|
||||
final HttpDelete httpDelete = new HttpDelete(BASE_URL + "1/students/3");
|
||||
final HttpResponse response = client.execute(httpDelete);
|
||||
assertEquals(404, response.getStatusLine().getStatusCode());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenDeleteValidStudent_thenReceiveOKResponse() throws IOException {
|
||||
final HttpDelete httpDelete = new HttpDelete(BASE_URL + "1/students/1");
|
||||
final HttpResponse response = client.execute(httpDelete);
|
||||
assertEquals(200, response.getStatusLine().getStatusCode());
|
||||
|
||||
final Course course = getCourse(1);
|
||||
assertEquals(1, course.getStudents().size());
|
||||
assertEquals(2, course.getStudents().get(0).getId());
|
||||
assertEquals("Student B", course.getStudents().get(0).getName());
|
||||
}
|
||||
|
||||
private Course getCourse(int courseOrder) throws IOException {
|
||||
final URL url = new URL(BASE_URL + courseOrder);
|
||||
final InputStream input = url.openStream();
|
||||
return JAXB.unmarshal(new InputStreamReader(input), Course.class);
|
||||
}
|
||||
|
||||
private Student getStudent(int courseOrder, int studentOrder) throws IOException {
|
||||
final URL url = new URL(BASE_URL + courseOrder + "/students/" + studentOrder);
|
||||
final InputStream input = url.openStream();
|
||||
return JAXB.unmarshal(new InputStreamReader(input), Student.class);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
target/
|
|
@ -0,0 +1,129 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>cxf-spring</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<parent>
|
||||
<groupId>com.baeldung</groupId>
|
||||
<artifactId>apache-cxf</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-frontend-jaxws</artifactId>
|
||||
<version>${cxf.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-transports-http-jetty</artifactId>
|
||||
<version>${cxf.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
<version>${spring.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-webmvc</artifactId>
|
||||
<version>${spring.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>javax.servlet-api</artifactId>
|
||||
<version>3.1.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<version>2.6</version>
|
||||
<configuration>
|
||||
<failOnMissingWebXml>false</failOnMissingWebXml>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>${surefire.version}</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>**/*LiveTest.java</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>live</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.cargo</groupId>
|
||||
<artifactId>cargo-maven2-plugin</artifactId>
|
||||
<version>1.4.19</version>
|
||||
<configuration>
|
||||
<container>
|
||||
<containerId>tomcat8x</containerId>
|
||||
<type>embedded</type>
|
||||
</container>
|
||||
<configuration>
|
||||
<properties>
|
||||
<cargo.hostname>localhost</cargo.hostname>
|
||||
<cargo.servlet.port>8081</cargo.servlet.port>
|
||||
</properties>
|
||||
</configuration>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>start-server</id>
|
||||
<phase>pre-integration-test</phase>
|
||||
<goals>
|
||||
<goal>start</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>stop-server</id>
|
||||
<phase>post-integration-test</phase>
|
||||
<goals>
|
||||
<goal>stop</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>${surefire.version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>integration-test</phase>
|
||||
<goals>
|
||||
<goal>test</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>none</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
|
||||
</profiles>
|
||||
|
||||
<properties>
|
||||
<cxf.version>3.1.6</cxf.version>
|
||||
<spring.version>4.3.1.RELEASE</spring.version>
|
||||
<surefire.version>2.19.1</surefire.version>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,21 @@
|
|||
package com.baeldung.cxf.spring;
|
||||
|
||||
import javax.servlet.ServletContext;
|
||||
import javax.servlet.ServletRegistration;
|
||||
|
||||
import org.apache.cxf.transport.servlet.CXFServlet;
|
||||
import org.springframework.web.WebApplicationInitializer;
|
||||
import org.springframework.web.context.ContextLoaderListener;
|
||||
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
|
||||
|
||||
public class AppInitializer implements WebApplicationInitializer {
|
||||
@Override
|
||||
public void onStartup(ServletContext container) {
|
||||
AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext();
|
||||
context.register(ServiceConfiguration.class);
|
||||
container.addListener(new ContextLoaderListener(context));
|
||||
|
||||
ServletRegistration.Dynamic dispatcher = container.addServlet("dispatcher", new CXFServlet());
|
||||
dispatcher.addMapping("/services/*");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
package com.baeldung.cxf.spring;
|
||||
|
||||
import javax.jws.WebService;
|
||||
|
||||
@WebService
|
||||
public interface Baeldung {
|
||||
String hello(String name);
|
||||
|
||||
String register(Student student);
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.baeldung.cxf.spring;
|
||||
|
||||
import javax.jws.WebService;
|
||||
|
||||
@WebService(endpointInterface = "com.baeldung.cxf.spring.Baeldung")
|
||||
public class BaeldungImpl implements Baeldung {
|
||||
private int counter;
|
||||
|
||||
public String hello(String name) {
|
||||
return "Hello " + name + "!";
|
||||
}
|
||||
|
||||
public String register(Student student) {
|
||||
counter++;
|
||||
return student.getName() + " is registered student number " + counter;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package com.baeldung.cxf.spring;
|
||||
|
||||
import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@Configuration
|
||||
public class ClientConfiguration {
|
||||
@Bean(name = "client")
|
||||
public Object generateProxy() {
|
||||
return proxyFactoryBean().create();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public JaxWsProxyFactoryBean proxyFactoryBean() {
|
||||
JaxWsProxyFactoryBean proxyFactory = new JaxWsProxyFactoryBean();
|
||||
proxyFactory.setServiceClass(Baeldung.class);
|
||||
proxyFactory.setAddress("http://localhost:8081/services/baeldung");
|
||||
return proxyFactory;
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue