Gerhard Petracek created DELTASPIKE-255:
-------------------------------------------

             Summary: base class for extensions
                 Key: DELTASPIKE-255
                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-255
             Project: DeltaSpike
          Issue Type: Improvement
          Components: Core
    Affects Versions: 0.3-incubating
            Reporter: Gerhard Petracek
            Assignee: Gerhard Petracek
             Fix For: 0.4-incubating


in myfaces codi we have
    /**
     * Returns if the current instance is active or not.
     *
     * @return true if the current instance is active, false otherwise
     */
    boolean isActivated();
in Deactivatable to keep it more obvious where the logic for the de-/activation 
is located.

in deltaspike we don't have this method any longer, but we could use an 
abstract class which contains our generic observer implementation - instead of 
c&p

    protected void init(@Observes BeforeBeanDiscovery beforeBeanDiscovery)
    {
        isActivated = ClassDeactivationUtils.isActivated(getClass());
    }

for every extension.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to