Examples of Executable


Examples of net.sf.saxon.instruct.Executable

     * Check for schema-awareness.
     * Typed input nodes are recognized if and only if the stylesheet contains an import-schema declaration.
     */

    private void checkForSchemaAwareness() {
        Executable exec = getExecutable();
        if (!exec.isSchemaAware() && exec.getConfiguration().isLicensedFeature(Configuration.LicenseFeature.SCHEMA_AWARE_XSLT)) {
            for (int i = 0; i < topLevel.size(); i++) {
                Object node = topLevel.get(i);
                if (node instanceof XSLImportSchema) {
                    exec.setSchemaAware(true);
                    return;
                }
            }
            //exec.setSchemaAware(false);
        }
View Full Code Here

Examples of net.sf.saxon.instruct.Executable

     * @param info Compilation options
     */

    protected PreparedStylesheet(Configuration config, CompilerInfo info) {
        this.config = config;
        executable = new Executable(config);
        RuleManager rm = new RuleManager();
        rm.setRecoveryPolicy(info.getRecoveryPolicy());
        executable.setRuleManager(rm);
        executable.setHostLanguage(Configuration.XSLT);
        executable.setCollationTable(new CollationMap(config.getCollationMap()));
View Full Code Here

Examples of net.sf.saxon.instruct.Executable

    /**
     * Get the systemId of the module containing the expression
     */

    public String getSystemId() {
        Executable exec = getExecutable();
        if (exec == null) {
            return null;
        }
        return exec.getLocationMap().getSystemId(locationId);
    }
View Full Code Here

Examples of net.sourceforge.orbroker.Executable

    Assert.notNull(getBroker(), "broker is required");

    //obtain a JDBC Connection
    Connection connection = DataSourceUtils.getConnection(getDataSource());
    //obtain a new Executable
    Executable executable = newExecutable(getBroker(), connection);
    try {
      return action.doInBroker(executable);
    } catch (BrokerException e) {
      throw convertBrokerException(e);
    } catch (RuntimeException e) {
View Full Code Here

Examples of org.apache.examples.panorama.startup.Executable

public class PanoramaMailModule extends AbstractAnnotatedModule
{
    @Service( id="MailStartup" )
    public Executable getMailStartupService()
    {
        Executable startup = new MailStartup();
        return startup;
    }
View Full Code Here

Examples of org.apache.examples.panorama.startup.Executable

        verifyControls();
    }

    public void testFailure()
    {
        Executable f = new Executable()
        {
            public void execute() throws Exception
            {
                throw new ApplicationRuntimeException("Failure!");
            }
View Full Code Here

Examples of org.apache.examples.panorama.startup.Executable

        verifyControls();
    }

    public void testFailure()
    {
        Executable f = new Executable()
        {
            public void execute() throws Exception
            {
                throw new ApplicationRuntimeException("Failure!");
            }
View Full Code Here

Examples of org.hibernate.action.Executable

  public void afterTransactionCompletion(boolean success) {
    int size = executions.size();
    final boolean invalidateQueryCache = session.getFactory().getSettings().isQueryCacheEnabled();
    for ( int i = 0; i < size; i++ ) {
      try {
        Executable exec = ( Executable ) executions.get( i );
        try {
          exec.afterTransactionCompletion( success );
        }
        finally {
          if ( invalidateQueryCache ) {
            session.getFactory().getUpdateTimestampsCache().invalidate( exec.getPropertySpaces() );
          }
        }
      }
      catch ( CacheException ce ) {
        log.error( "could not release a cache lock", ce );
View Full Code Here

Examples of org.hibernate.action.Executable

  }

  private void prepareActions(List queue) throws HibernateException {
    int size = queue.size();
    for ( int i = 0; i < size; i++ ) {
      Executable executable = ( Executable ) queue.get( i );
      executable.beforeExecutions();
    }
  }
View Full Code Here

Examples of org.hibernate.action.Executable

  public void afterTransactionCompletion(boolean success) {
    int size = executions.size();
    final boolean invalidateQueryCache = session.getFactory().getSettings().isQueryCacheEnabled();
    for ( int i = 0; i < size; i++ ) {
      try {
        Executable exec = ( Executable ) executions.get( i );
        try {
          exec.afterTransactionCompletion( success );
        }
        finally {
          if ( invalidateQueryCache ) {
            session.getFactory().getUpdateTimestampsCache().invalidate( exec.getPropertySpaces() );
          }
        }
      }
      catch ( CacheException ce ) {
        log.error( "could not release a cache lock", ce );
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.