container/components/components/src/main/java/org/mobicents/slee/container/component/deployment/jaxb/descriptors/LibraryDescriptorFactoryImpl.java
public List<LibraryDescriptorImpl> parse(InputStream inputStream) throws DeploymentException {

    Object jaxbPojo = buildJAXBPojo(inputStream);

    List<LibraryDescriptorImpl> result = new ArrayList<LibraryDescriptorImpl>();

    // Only exists in JAIN SLEE 1.1
    boolean isSlee11 = true;

    MLibraryJar mLibraryJar = null;
    if (jaxbPojo instanceof org.mobicents.slee.container.component.deployment.jaxb.slee11.library.LibraryJar )
    {
      mLibraryJar = new MLibraryJar((org.mobicents.slee.container.component.deployment.jaxb.slee11.library.LibraryJar)jaxbPojo);
    } 
    else {
      throw new SLEEException("unexpected class of jaxb pojo built: "+(jaxbPojo != null ? jaxbPojo.getClass() : null));
    }

    MSecurityPermissions securityPermissions = mLibraryJar.getSecurityPermissions();
    for (MLibrary mLibrary : mLibraryJar.getLibrary())
    {
      result.add(new LibraryDescriptorImpl(mLibrary, securityPermissions, isSlee11));
    }
    
    return result;
  }
public List<LibraryDescriptorImpl> parse(InputStream inputStream) throws DeploymentException {

    Object jaxbPojo = buildJAXBPojo(inputStream);

    List<LibraryDescriptorImpl> result = new ArrayList<LibraryDescriptorImpl>();

    // Only exists in JAIN SLEE 1.1
    boolean isSlee11 = true;

    MLibraryJar mLibraryJar = null;
    if (jaxbPojo instanceof org.mobicents.slee.container.component.deployment.jaxb.slee11.library.LibraryJar )
    {
      mLibraryJar = new MLibraryJar((org.mobicents.slee.container.component.deployment.jaxb.slee11.library.LibraryJar)jaxbPojo);
    } 
    else {
      throw new SLEEException("unexpected class of jaxb pojo built: "+(jaxbPojo != null ? jaxbPojo.getClass() : null));
    }

    MSecurityPermissions securityPermissions = mLibraryJar.getSecurityPermissions();
    for (MLibrary mLibrary : mLibraryJar.getLibrary())
    {
      result.add(new LibraryDescriptorImpl(mLibrary, securityPermissions, isSlee11));
    }
    
    return result;
  }
public List < LibraryDescriptorImpl > parse ( InputStream inputStream ) throws DeploymentException { Object jaxbPojo = buildJAXBPojo ( inputStream ) ; List < LibraryDescriptorImpl > result = new ArrayList < LibraryDescriptorImpl > ( ) ; // Only exists in JAIN SLEE 1.1 boolean isSlee11 = true ; MLibraryJar mLibraryJar = null ; if ( jaxbPojo instanceof org . mobicents . slee . container . component . deployment . jaxb . slee11 . library . LibraryJar ) { mLibraryJar = new MLibraryJar ( ( org . mobicents . slee . container . component . deployment . jaxb . slee11 . library . LibraryJar ) jaxbPojo ) ; } else { throw new SLEEException ( "unexpected class of jaxb pojo built: " + ( jaxbPojo != null ? jaxbPojo . getClass ( ) : null ) ) ; } MSecurityPermissions securityPermissions = mLibraryJar . getSecurityPermissions ( ) ; for ( MLibrary mLibrary : mLibraryJar . getLibrary ( ) ) { result . add ( new LibraryDescriptorImpl ( mLibrary , securityPermissions , isSlee11 ) ) ; } return result ; }
/*
(non-Javadoc)
@see org.mobicents.slee.core.component.library.LibraryDescriptorFactory#parse(java.io.InputStream)
/ * ( non - Javadoc )