Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Module Name Subtitle.

Similar presentations


Presentation on theme: "Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Module Name Subtitle."— Presentation transcript:

1 Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Module Name Subtitle

2 2 Topics in this Session Topic 1 Topic 2

3 3 Topics in this Session Topic 1 Topic 2

4 4 A Slide With Some Points Most slides will have 24 pt top-level text –However, go for 28 pt if there is little text on the slide This is a point And another one –Second level (20 or 24 pt) Third level (18 or 20 pt) –Try to avoid any fourth or lower level (16 or 18) Try to split heavy slides with lots of text into two

5 5 Code Sample - Small Here’s a code sample // This is Helvetica: 18 pt or higher please public class TransferServiceImpl implements TransferService { public TransferServiceImpl(AccountRepository ar) { this.accountRepository = ar; } … } // This is Helvetica: 18 pt or higher please public class TransferServiceImpl implements TransferService { public TransferServiceImpl(AccountRepository ar) { this.accountRepository = ar; } … }

6 6 Code Sample - Large public void TransferServiceTests extends TestCase { private TransferService service; protected void setUp() { // Create the application from the configuration ApplicationContext context = new ClassPathXmlApplicationContext( “ application-config.xml ” ); // Look up the application service interface service = (TransferService) context.getBean( “ transferService ” ); } public void testMoneyTransfer() { Confirmation receipt = service.transfer(new MonetaryAmount( “ 300.00 ” ), “ 1 ”, “ 2 ” )); assertEquals(receipt.getNewBalance(), “ 500.00 ” ); } … } public void TransferServiceTests extends TestCase { private TransferService service; protected void setUp() { // Create the application from the configuration ApplicationContext context = new ClassPathXmlApplicationContext( “ application-config.xml ” ); // Look up the application service interface service = (TransferService) context.getBean( “ transferService ” ); } public void testMoneyTransfer() { Confirmation receipt = service.transfer(new MonetaryAmount( “ 300.00 ” ), “ 1 ”, “ 2 ” )); assertEquals(receipt.getNewBalance(), “ 500.00 ” ); } … } This is a labelAnother label

7 7 Code Sample - XML

8 8 Code Sample - Code and XML The code box is a little darker public class LegacySingleton { private LegacySingleton() {... } public static LegacySingleton getInstance() { … } public class LegacySingleton { private LegacySingleton() {... } public static LegacySingleton getInstance() { … } <bean id=“singleton” class=“example.LegacySingleton” factory-method=“getInstance” /> <bean id=“singleton” class=“example.LegacySingleton” factory-method=“getInstance” />

9 9 Code Sample - Annotations @Aspect public class PropertyChangeLogger { private Logger logger = Logger.getLog(getClass()); @Pointcut(“execution(void set*(*))”) public void setOperation() {} @Before(“setOperation()”) public void logChange() { logger.info(“Property about to change…”); } }

10 10 A Class Diagram ResourceLoader > MessageSource > ApplicationEventPublisher > ApplicationContext > getResource(String)publishEvent(AppEvent) getBean(String) getMessage(String)

11 11 A Sequence Diagram Service invoke(“input”) confirmation Repository getObject(“criteria”) getConnection() Infrastructure

12 12 An Object Interaction Diagram Object call invoke call Object 123

13 13 Application Context A Configuration Diagram Application Service Repository 2 Data Source Repository 1 Repository 3

14 14 Summary Topic 1 Topic 2

15 Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Demo Demo Title

16 Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Lab Lab Title


Download ppt "Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Module Name Subtitle."

Similar presentations


Ads by Google