This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.strategy; | |
public interface Strategy<R> { | |
public R execute(Object input); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package plugins; | |
import java.util.List; | |
import java.util.Properties; | |
import org.apache.commons.logging.Log; | |
import org.apache.commons.logging.LogFactory; | |
import org.cloudfoundry.runtime.env.CloudEnvironment; | |
import org.cloudfoundry.runtime.env.MysqlServiceInfo; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= Motivation = | |
Code conventions are important to programmers for a number of reasons | |
- 80% of the lifetime cost of a piece of software goes to maintenance. | |
- Hardly any software is maintained for its whole life by the original author. | |
- Code conventions improve the software readability, allowing programmers to understand new code more quickly and thoroughly. | |
= Coding Standards = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.svc; | |
import org.springframework.stereotype.Service; | |
import org.springframework.transaction.annotation.Transactional; | |
@Service("fooService") | |
@Transactional | |
final class FooServiceImpl implements FooService { | |
/* constractor, fields, etcs. */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.eventroaster.example; | |
import org.eventroaster.annotation.Event; | |
import org.eventroaster.EventServiceFactory; | |
import org.eventroaster.annotation.EventHandler; | |
import org.eventroaster.EventService; | |
import org.eventroaster.EventServiceFactory; | |
@Event | |
public class EchoEvent {} |
NewerOlder