Created
June 29, 2012 14:45
-
-
Save luisartola/3018365 to your computer and use it in GitHub Desktop.
java snippets
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
-Dcatalina.home="/Library/apache-tomcat-5.5.33/" -Djava.endorsed.dirs="/Library/apache-tomcat-5.5.33/common/endorsed" -Dcatalina.base="/Library/apache-tomcat-5.5.33/" -Djava.io.tmpdir="/Library/apache-tomcat-5.5.33/temp" -Xms768m -Xmx768m -XX:PermSize=768m -XX:MaxPermSize=768m | |
-Dcatalina.home="/Library/apache-tomcat-5.5.33" -Djava.endorsed.dirs="/Library/apache-tomcat-5.5.33/common/endorsed" -Dcatalina.base="/Library/apache-tomcat-5.5.33" -Djava.io.tmpdir="/Library/apache-tomcat-5.5.33/temp" -Xms768m -Xmx768m -XX:PermSize=768m -XX:MaxPermSize=768m -Dwtp.deploy="/Library/apache-tomcat-5.5.33/webapps" -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false |
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
<bean id="exampleBean" class="examples.ExampleBean" | |
factory-method="createInstance"> | |
<constructor-arg ref="anotherExampleBean"/> | |
<constructor-arg ref="yetAnotherBean"/> | |
<constructor-arg value="1"/> | |
</bean> |
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
<bean id="exampleBean" class="examples.ExampleBean" | |
factory-method="createInstance"> | |
<constructor-arg ref="anotherExampleBean"/> | |
<constructor-arg ref="yetAnotherBean"/> | |
<constructor-arg value="1"/> | |
</bean> |
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
STATIC INITIALIZER | |
public class Test { | |
private static final int a; | |
static { | |
a = 5; | |
doSomething(a); | |
} | |
private static int doSomething(int x) { | |
return (x+5); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment