Examples of BaseInterceptor


Examples of org.apache.tomcat.core.BaseInterceptor

  }
    }

    void loadJsp( Context context, Handler result ) throws Exception {
  // A Jsp initialized in web.xml -
        BaseInterceptor ri[];
  String path=((ServletHandler)result).getServletInfo().getJspFile();
  String requestURI = path + "?jsp_precompile=true";

  Request req = cm.createRequest(context, requestURI);
  ri=context.getContainer().
View Full Code Here

Examples of org.apache.tomcat.core.BaseInterceptor

  }
  // preInit have no exceptions and doesn't delay us
  // We can run init hooks and init

  // Call pre, doInit and post
  BaseInterceptor cI[]=context.getContainer().getInterceptors();
  for( int i=0; i< cI.length; i++ ) {
      try {
    cI[i].preServletInit( context, this );
      } catch( TomcatException ex) {
    // log, but ignore.
View Full Code Here

Examples of org.apache.tomcat.core.BaseInterceptor

   
    protected void doDestroy() throws TomcatException {
  synchronized (this) {
      try {
    if( servlet!=null) {
        BaseInterceptor cI[]=context.
      getContainer().getInterceptors();
        for( int i=0; i< cI.length; i++ ) {
      try {
          cI[i].preServletDestroy( context, this );
      } catch( TomcatException ex) {
View Full Code Here

Examples of org.apache.tomcat.core.BaseInterceptor

    // Overrides the default handler
    public void service ( Request req, Response res )
  throws Exception
    {
        BaseInterceptor ri[];
  ri=context.getContainer().
      getInterceptors(Container.H_preInitCheck);
  for( int i=0; i< ri.length; i++ ) {
      int status = ri[i].preInitCheck(req, this);
      if(status != 0) {
View Full Code Here

Examples of org.apache.tomcat.core.BaseInterceptor

    {
  // set the owner module for the servlet.
  // Even if the servlets are defined in WebXmlReader, they should
  // belong to Servlet22Interceptor. ( it's easy to set WebXmlReader,
  // but it's more intuitive to set debug and options on Servlet22 )
  BaseInterceptor mods[]=ctx.getContainer().getInterceptors();
  for( int i=0; i<mods.length; i++ ) {
      if( mods[i] instanceof Servlet22Interceptor ) {
    handler.setModule( mods[i] );
    break;
      }
View Full Code Here

Examples of org.apache.tomcat.core.BaseInterceptor

    public void prompt( Object [] modules, Context ctx, int delay, int scroll ) {
        if ( !valid )
            return;

        for ( int i = 0; i < modules.length; i++ ) {
            BaseInterceptor module = (BaseInterceptor)modules[i];
            if ( !moduleClass.isInstance( module ) ) {
                continue;
            }
            if ( !testMethod.invokeBool( module, true ) ) {
                if ( debug > 0 ) {
View Full Code Here

Examples of org.jboss.cache.interceptors.BaseInterceptor

               if (mbeanExists)
                  // register associated interceptor mbean
                  server.registerMBean(interceptor, objName);
               else
                  // register dummy interceptor mbean
                  server.registerMBean(new BaseInterceptor(), objName);
            }
            catch (Exception e)
            {
               LOG.warn("mbean registration failed for " + objName.getCanonicalName() + "; " + e.toString());
            }           
View Full Code Here

Examples of org.jboss.cache.pojo.interceptors.dynamic.BaseInterceptor

         Object obj = it.next();

         if (obj instanceof InstanceAdvisor)
         {
            InstanceAdvisor advisor = (InstanceAdvisor) obj;
            BaseInterceptor interceptor = (BaseInterceptor) undoMap.get(advisor);

            if (interceptor == null)
            {
               throw new IllegalStateException("PojoCacheDelegate.undoInterceptorDetach(): null interceptor");
            }

            advisor.appendInterceptor(interceptor);
         }
         else
         {
            BaseInterceptor interceptor = (BaseInterceptor) undoMap.get(obj);
            boolean copyToCache = false;
            ((AbstractCollectionInterceptor) interceptor).attach(null, copyToCache);
         }
      }
   }
View Full Code Here

Examples of org.jboss.cache.pojo.interceptors.dynamic.BaseInterceptor

      if (isCollection)
      {
         // Need to reset it here in case this is a new proxy instance
         pojoInstance.set(obj);
         // Attach pojoReference to that interceptor
         BaseInterceptor baseInterceptor = (BaseInterceptor) CollectionInterceptorUtil.getInterceptor(
               (ClassProxy) obj);
         baseInterceptor.setAopInstance(pojoInstance);
      }
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.