Package net.sf.jportlet.portlet.descriptor

Examples of net.sf.jportlet.portlet.descriptor.ApplicationDescriptorLoaderXml


        throws Exception
    {
        String                         path = "net/sf/jportlet/descriptor/test/portlet.xml";
        InputStream                    in = getClass(  ).getClassLoader(  ).getResourceAsStream( path );

        ApplicationDescriptorLoaderXml loader = new ApplicationDescriptorLoaderXml(  );
        ApplicationDescriptor          app = loader.load( in );

        assertNotNull( "app", app );
        assertEquals( "app.name", "Portlet Application", app.getName(  ) );
        assertEquals( "app.contextParameter[param1]", "value1", app.getContextParameter( "param1" ) );
View Full Code Here


        if ( in == null )
        {
            throw new PortletException( "Resource not found: " + PORTLET_DD );
        }

        _descriptor = new ApplicationDescriptorLoaderXml(  ).load( in );

        Iterator it = _descriptor.getPortletDescriptors(  ).iterator(  );

        while ( it.hasNext(  ) )
        {
View Full Code Here

TOP

Related Classes of net.sf.jportlet.portlet.descriptor.ApplicationDescriptorLoaderXml

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.