Class AbstractPojoPhase

    • Constructor Detail

      • AbstractPojoPhase

        public AbstractPojoPhase()
    • Method Detail

      • getLifecycleState

        protected abstract BeanState getLifecycleState()
      • start

        public void start​(org.jboss.msc.service.StartContext context)
                   throws org.jboss.msc.service.StartException
        Specified by:
        start in interface org.jboss.msc.Service
        Specified by:
        start in interface org.jboss.msc.service.Service<Object>
        Throws:
        org.jboss.msc.service.StartException
      • startInternal

        protected void startInternal​(org.jboss.msc.service.StartContext context)
                              throws org.jboss.msc.service.StartException
        Throws:
        org.jboss.msc.service.StartException
      • registerAliases

        protected void registerAliases​(org.jboss.msc.service.ServiceBuilder serviceBuilder,
                                       BeanState next)
      • stop

        public void stop​(org.jboss.msc.service.StopContext context)
        Specified by:
        stop in interface org.jboss.msc.Service
        Specified by:
        stop in interface org.jboss.msc.service.Service<Object>
      • stopInternal

        protected void stopInternal​(org.jboss.msc.service.StopContext context)
      • createJoinpoint

        protected org.jboss.as.pojo.service.Joinpoint createJoinpoint​(InstallConfig config)
      • executeInstalls

        protected void executeInstalls()
                                throws org.jboss.msc.service.StartException
        Throws:
        org.jboss.msc.service.StartException
      • considerUninstalls

        protected void considerUninstalls​(List<org.jboss.as.pojo.service.Joinpoint> uninstalls,
                                          int index)
        Consider the uninstalls.

        This method is here to be able to override the behavior after installs failed. e.g. perhaps only running uninstalls from the index.

        By default we run all uninstalls in the case at least one install failed.

        Parameters:
        uninstalls - the uninstalls
        index - current installs index
      • executeUninstalls

        protected void executeUninstalls()
      • addCallbacks

        protected void addCallbacks​(boolean install)
      • removeCallbacks

        protected void removeCallbacks​(boolean install)
      • getModule

        protected org.jboss.modules.Module getModule()
      • setModule

        protected void setModule​(org.jboss.modules.Module module)
      • getIndex

        protected org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex getIndex()
      • setIndex

        protected void setIndex​(org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex index)
      • getBeanInfo

        protected BeanInfo getBeanInfo()
      • setBeanInfo

        protected void setBeanInfo​(BeanInfo beanInfo)
      • getBean

        protected Object getBean()
      • setBean

        protected void setBean​(Object bean)