You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by "Richard Hensley (JIRA)" <hi...@jakarta.apache.org> on 2005/05/04 18:09:11 UTC

[jira] Created: (HIVEMIND-117) add an activate-method and passivate-method attribute to the construct element of BuilderFactory

add an activate-method and passivate-method attribute to the construct element of BuilderFactory
------------------------------------------------------------------------------------------------

         Key: HIVEMIND-117
         URL: http://issues.apache.org/jira/browse/HIVEMIND-117
     Project: HiveMind
        Type: New Feature
  Components: framework  
    Versions: 1.1    
    Reporter: Richard Hensley


Add attributes to the construct element of BuilderFactory that supports the life cycle management of Pooled services. These attributes could be used in place of the PoolManageable interface. The motiviation for this feature is to make the services container agnostic. The beans we construct need to operate in a Spring environment and a Hivemind environment depending on the deployment choices.

Here is a start at a specification.

add a activate-method attribute to the construct element recognized by BuilderFactory

When the activate-method is specified, the method must be a public void method taking no parameters. This method is called either just before the service is created, or just after the service is removed from the service pool and bound to a new thread. When autowire-service is enabled and activate-method is not specified, BuilderFactory will introspect for a method called activateService() and treat it as a activate-method. If the service also implements the PoolManageable interface, the activate-method is called before the PoolManageable.activateService() method.

add a passivate-method attribute to the construct element recognized by BuilderFactory

When the passivate-method is specified, the method must be a public void method taking no parameters. This method is called when a service is unbound from a thread, just before being returned to the service pool. When autowire-service is enabled and passivate-method is not specified, BuilderFactory will introspect for a method called passivateService() and treat it as a passivate-method. If the service also implements the PoolManageable interface, the passivate-method is called before the PoolManageable.passivateService() method.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org


[jira] Commented: (HIVEMIND-117) add an activate-method and passivate-method attribute to the construct element of BuilderFactory

Posted by "Johan Lindquist (JIRA)" <hi...@jakarta.apache.org>.
    [ https://issues.apache.org/jira/browse/HIVEMIND-117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572078#action_12572078 ] 

Johan Lindquist commented on HIVEMIND-117:
------------------------------------------

As for error checking - if the builder factory find that the two method (active and passivate) specifies the same method - what should be the behaviour?  Standard hivemind behaviour and simply log an error and continue (not processing one the lifecycle methods) or throw an exception while creating the service?  Any thoughts?

> add an activate-method and passivate-method attribute to the construct element of BuilderFactory
> ------------------------------------------------------------------------------------------------
>
>                 Key: HIVEMIND-117
>                 URL: https://issues.apache.org/jira/browse/HIVEMIND-117
>             Project: HiveMind
>          Issue Type: New Feature
>          Components: framework
>    Affects Versions: 1.1
>            Reporter: Richard Hensley
>
> Add attributes to the construct element of BuilderFactory that supports the life cycle management of Pooled services. These attributes could be used in place of the PoolManageable interface. The motiviation for this feature is to make the services container agnostic. The beans we construct need to operate in a Spring environment and a Hivemind environment depending on the deployment choices.
> Here is a start at a specification.
> add a activate-method attribute to the construct element recognized by BuilderFactory
> When the activate-method is specified, the method must be a public void method taking no parameters. This method is called either just before the service is created, or just after the service is removed from the service pool and bound to a new thread. When autowire-service is enabled and activate-method is not specified, BuilderFactory will introspect for a method called activateService() and treat it as a activate-method. If the service also implements the PoolManageable interface, the activate-method is called before the PoolManageable.activateService() method.
> add a passivate-method attribute to the construct element recognized by BuilderFactory
> When the passivate-method is specified, the method must be a public void method taking no parameters. This method is called when a service is unbound from a thread, just before being returned to the service pool. When autowire-service is enabled and passivate-method is not specified, BuilderFactory will introspect for a method called passivateService() and treat it as a passivate-method. If the service also implements the PoolManageable interface, the passivate-method is called before the PoolManageable.passivateService() method.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVEMIND-117) add an activate-method and passivate-method attribute to the construct element of BuilderFactory

Posted by "Johan Lindquist (JIRA)" <hi...@jakarta.apache.org>.
    [ https://issues.apache.org/jira/browse/HIVEMIND-117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569291#action_12569291 ] 

Johan Lindquist commented on HIVEMIND-117:
------------------------------------------

As part of looking at HIVEMIND-116, this fits into the same pattern and could be bundled as part of that.  Does that make sense or am I missing something essential?

> add an activate-method and passivate-method attribute to the construct element of BuilderFactory
> ------------------------------------------------------------------------------------------------
>
>                 Key: HIVEMIND-117
>                 URL: https://issues.apache.org/jira/browse/HIVEMIND-117
>             Project: HiveMind
>          Issue Type: New Feature
>          Components: framework
>    Affects Versions: 1.1
>            Reporter: Richard Hensley
>
> Add attributes to the construct element of BuilderFactory that supports the life cycle management of Pooled services. These attributes could be used in place of the PoolManageable interface. The motiviation for this feature is to make the services container agnostic. The beans we construct need to operate in a Spring environment and a Hivemind environment depending on the deployment choices.
> Here is a start at a specification.
> add a activate-method attribute to the construct element recognized by BuilderFactory
> When the activate-method is specified, the method must be a public void method taking no parameters. This method is called either just before the service is created, or just after the service is removed from the service pool and bound to a new thread. When autowire-service is enabled and activate-method is not specified, BuilderFactory will introspect for a method called activateService() and treat it as a activate-method. If the service also implements the PoolManageable interface, the activate-method is called before the PoolManageable.activateService() method.
> add a passivate-method attribute to the construct element recognized by BuilderFactory
> When the passivate-method is specified, the method must be a public void method taking no parameters. This method is called when a service is unbound from a thread, just before being returned to the service pool. When autowire-service is enabled and passivate-method is not specified, BuilderFactory will introspect for a method called passivateService() and treat it as a passivate-method. If the service also implements the PoolManageable interface, the passivate-method is called before the PoolManageable.passivateService() method.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.