Wednesday, June 4, 2014

Injecting byte code using class loader

 Annotation Processor Tool (APT)
   source -(compile and performs modifications at model level)-> bytecode already modified - regular class loader -> loads class into memory
   Post-Compiling processing
   source -compile -> bytecode -post-compile-> modified bytecode - regular class loader -> loads class into memory
   Runtime modifications
   source -compile -> bytecode -post-compile-> modified bytecode - regular class loader -> loaded into memory - javassist proxy -> modified class - javassist hot swapper -> re-modified class

Source :stackoverflow.com

What is A standalone bean container

Integration testing scopes

Application scope - Active for all methods in a test class
Session scope - Active for all methods in a test class
Request scope - Active for a single test method

Deployment of war in remote server using Arquillian

Deployment in multipe server on different host using Arquillian

JVM Cucumber Integration with Arquillian

Monday, June 2, 2014

FilterOutputStream example in java

FilterInputStream example in java

FilenameFilter example in java

URL example in java

URLConnection example in java

URLEncoder example in java

Observable example in java

what are immutable and mutable collections

what are immutable and mutable array

Creating a Mutable object in java

Creating a Mutable array in java

Creating a Mutable collections in java

What is Immutable object

ShortBuffer in java

LongBuffer in java

IntBuffer in java

FloatBuffer in java

DoubleBuffer in java

CharBuffer in java

MappedByteBuffer in java

Security in Xtend

Security in X10

Security in Gosu

Security in fortress

Security in xtend

Security in Kotlin

Security in Ceylon

Security in Fantom

Security in scala

Sunday, June 1, 2014

Converting object to byte array

Converting wrapper class to byte array

Converting String to byte array

Converting Bigdecimal to byte array

Converting byte array to Big decimal

Converting byte array to string

How to determine the size of an object

Determining the object size via serialization

Getting the byte array of serialized object

Fragmenting object size for different data types

byte code and inheritance

byte code and polymorphism

Converting instance variable to instance variable object in java

Converting method to method object in java

Bamboo,Hudson continuous integration

spock

cucumber jvm

Arquillian

Nexus

SBT

Byteman

Invoke virtual vs invoke especial