Package org.jasig.portal.car

Examples of org.jasig.portal.car.CarResources


     */
    private File getCarFile() throws PortalException
    {
        if (mCarFile == null)
        {
            CarResources cRes = CarResources.getInstance();
            URL classUrl = cRes.findResource(mClassFilePath);
            if (classUrl == null)
                throw new PortalException(
                        "Unable to locate CAR containing compiled " +
                        "controller class file '" + mClassFilePath + "'.");
            String carPath = classUrl.toExternalForm();
View Full Code Here


     * @return
     */
    private void determineDeploymentNeeds() throws PortalException
    {
        mClassFilePath = mClassName.replace('.', '/') + ".class";
        CarResources cRes = CarResources.getInstance();

        mCarFilePath = cRes.getContainingCarPath(mClassFilePath);
        boolean classInCar = mCarFilePath != null;
        boolean classInDir = classInDir();
        boolean depldInDir = DeploymentSpec.getInstance()
                .isDeployInfoAvailableFor(mClassFilePath);
        boolean carIsNewer = depldInDir && isCarNewer();
View Full Code Here

     * @param classFilePath
     * @return
     */
    private boolean classInDir() throws PortalException
    {
        CarResources cRes = CarResources.getInstance();
        ClassLoader cLdr = cRes.getClassLoader();

        URL classUrl = cLdr.getResource(mClassFilePath);

        // if null then not in CAR or on classpath
        if (classUrl == null)
View Full Code Here

        Class c = null;
        Object obj = null;

        try
        {
            CarResources cRes = CarResources.getInstance();
            ClassLoader cl = cRes.getClassLoader();
            c = cl.loadClass(mControllerClassname);
        }
        catch (Exception e)
        {
            throw new PortalException(
View Full Code Here

     * @param classname
     */
    private void syncDeploymentOfResources(String classname)
    {
        String resource = classname.replace('.', '/') + ".class";
        CarResources cRes = CarResources.getInstance();
        String car = cRes.getContainingCarPath(resource);
       
        if (car == null) // class not found in car, no deployment necessary
        {
            mDeploymentApproach.put(classname, Channel.TRADITIONAL_DEPLOYMENT);
            return;
View Full Code Here

    {
        throw new PortalException ("Failed to load services.xml. External " +
                                   "portal services will not be started", ex);
    }

    CarResources cRes = CarResources.getInstance();

    if ( svcDescriptor != null ||
         cRes.hasDescriptors() )
    {
      ExternalServices svcMgr = new ExternalServices(servicesContext);

      if ( cRes.hasDescriptors() )
      {
          try {
              cRes.getServices( (ContentHandler) svcMgr.svcHandler );
          } catch (Exception ex) {
              throw new PortalException ("Failed to start external portal " +
                                         "services in CAR descriptors.", ex);
          }
      }
View Full Code Here

                                UserInstance.workerProperties=ResourceLoader.getResourceAsProperties(UserInstance.class, WORKER_PROPERTIES_FILE_NAME);
                            } catch (IOException ioe) {
                                log.error("UserInstance::processWorkerDispatch() : Unable to load worker.properties file. ", ioe);
                            }
                            // now add in component archive declared workers
                            CarResources cRes = CarResources.getInstance();
                            cRes.getWorkers( UserInstance.workerProperties );
                        }

                        String dispatchClassName=UserInstance.workerProperties.getProperty(workerName);
                        if(dispatchClassName==null) {
                            throw new PortalException("UserInstance::processWorkerDispatch() : Unable to find processing class for the worker type \""+workerName+"\". Please check worker.properties");
View Full Code Here

TOP

Related Classes of org.jasig.portal.car.CarResources

Copyright © 2018 www.massapicom. 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.