Wednesday, January 20, 2010

Xlet Lifecycle

Xlet's lifecycle can be easily visualized from the four callback methods' definitions.


LOADED
This state actually is not related with any of four callbacks. This state can be assumed when the default constructor invoked and the Xlet instance has been created.

PAUSED
This state can be reached by one of following paths.
  1. The host middleware invoked initXlet() on the LOADED Xlet instance.
  2. The host middleware invoked pauseXlet() on the ACTIVE Xlet instance.
  3. The Xlet instance (which is ACTIVE) makes itself PAUSED and notifies manager via XletContext.notifyPaused().

ACTIVE
The host middleware invoked startXlet() on the PAUSED Xlet instance.

DESTROYED
This state is the last state every Xlet instances go.
  1. The host middleware invoked destroyXlet() on the Xlet instance.
  2. The Xlet instance (which is not DESTROYED yet) makes itself DESTROYED and notifies manager via XletContext.notifyDestroyed().

One of funky points is that the destroyXlet() method can be invoked from any other states.
Here comes what apidoc saids.
This method may be called from the LoadedPaused or Active states.
[TODO] jinahya.fsm.xlet link

Monday, January 18, 2010

jinahya.googlecode.com

'Jinahya', which is this blog's title, is also refers the project on googlecode.

Project's Address: http://jinahya.googlecode.com

Almost all projects are made with Apache Maven2.

Each project matches following information.

svn repo: http://jinahya.googlecode.com/svn/maven/2/proj/${groupId}/${artifactId}/${version}/
mvn site: http://jinahya.googlecode.com/svn/maven/2/site/${groupId}/${artifactId}/${version}/

And here comes the maven repository you can use.

mvn repo: http://jinahya.googlecode.com/svn/maven/2/repo

Tuesday, January 12, 2010

Using Java EE 6 API with Maven2

Using Java EE 5 API with Maven2