[jboss-user] [JCA Development] New message: "Re: JBJCA-201 - Standalone configuration"

Jesper Pedersen do-not-reply at jboss.com
Tue Jan 19 14:01:36 EST 2010


User development,

A new message was posted in the thread "JBJCA-201 - Standalone configuration":

http://community.jboss.org/message/520909#520909

Author  : Jesper Pedersen
Profile : http://community.jboss.org/people/jesper.pedersen

Message:
--------------------------------------------------------------
Currently we are using
 
org.jboss.jca.deployers.common.validator.ValidateObject

 
as the holder class for the object that needs to be validated.
 
Probably a better option would be to create a
 
org.jboss.jca.deployers.common.validator.ValidateClass

 
object, since we shouldn't require an instance of the object that needs to be checked.The class looks like ValidateObject, but have
 
Class<?> target

 
instead of
 
Object target

 

The ValidateObject class should then be removed.
 
This is especially useful for the standalone configuration as we don't have to create the object instances, but just pass the class definition.
 
The Main class for the standalone configuration should take a single argument -- path to the .RAR archive -- then convert that into an java.net.URL and pass that to the
 
org.jboss.jca.deployers.common.validator.Validator

 
class.
 
This means that the validator will have to use a lot of the same constructs as the deployer chain. The common functionality should be extracted into classes living in .deployers.common. This change will of course require changes to the current deployer chain.

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/520909#520909




More information about the jboss-user mailing list