Package org.apache.openejb.assembler.classic

Examples of org.apache.openejb.assembler.classic.ReferenceLocationInfo


    }

    public ReferenceLocationInfo buildLocationInfo(JndiReference reference) {
        String lookupName = reference.getLookupName();
        if (lookupName != null) {
            ReferenceLocationInfo location = new ReferenceLocationInfo();
            location.jndiName = lookupName;
            return location;
        }
        String mappedName = reference.getMappedName();
        if (mappedName != null && mappedName.startsWith("jndi:")) {
            ReferenceLocationInfo location = new ReferenceLocationInfo();

            String name = mappedName.substring(5);

            if(name.startsWith("ext://")) {
                final URI uri = URI.create(name);
View Full Code Here


    public ReferenceLocationInfo buildLocationInfo(JndiReference reference) {
        String mappedName = reference.getMappedName();
        if (mappedName == null || !mappedName.startsWith("jndi:")) {
            return null;
        }
        ReferenceLocationInfo location = new ReferenceLocationInfo();
        location.jndiName = mappedName.replaceFirst("^jndi:", "");
        return location;
    }
View Full Code Here

  private void processJPAMappings(EjbJarInfo ejbInfo) {
    for(EnterpriseBeanInfo ebi : ejbInfo.enterpriseBeans){
     
      for(PersistenceUnitReferenceInfo pui : ebi.jndiEnc.persistenceUnitRefs) {
        pui.location = new ReferenceLocationInfo();
        pui.location.jndiName = "aries/integration/unit/" + pui.persistenceUnitName;
      }
     
      for(PersistenceContextReferenceInfo pci : ebi.jndiEnc.persistenceContextRefs) {
        pci.location = new ReferenceLocationInfo();
        pci.location.jndiName = "aries/integration/context/" + pci.persistenceUnitName;
      }
    }
   
  }
View Full Code Here

    private ReferenceLocationInfo buildLocationInfo(JndiReference reference) {
        String mappedName = reference.getMappedName();
        if (mappedName == null || !mappedName.startsWith("jndi:")) {
            return null;
        }
        ReferenceLocationInfo location = new ReferenceLocationInfo();
        location.jndiName = mappedName.replaceFirst("^jndi:", "");
        return location;
    }
View Full Code Here

    private ReferenceLocationInfo buildLocationInfo(JndiReference reference) {
        String mappedName = reference.getMappedName();
        if (mappedName == null || !mappedName.startsWith("jndi:")) {
            return null;
        }
        ReferenceLocationInfo location = new ReferenceLocationInfo();
        location.jndiName = mappedName.replaceFirst("^jndi:", "");
        return location;
    }
View Full Code Here

    }

    private ReferenceLocationInfo buildLocationInfo(final JndiReference reference) {
        final String lookupName = reference.getLookupName();
        if (lookupName != null) {
            final ReferenceLocationInfo location = new ReferenceLocationInfo();
            location.jndiName = lookupName;
            return location;
        }

        final String mappedName = reference.getMappedName();
        if (mappedName != null && mappedName.startsWith("jndi:")) {
            final ReferenceLocationInfo location = new ReferenceLocationInfo();
            final String name = mappedName.substring(5);

            if (name.startsWith("ext://")) {
                final URI uri = URLs.uri(name);
                location.jndiProviderId = uri.getHost();
View Full Code Here

    }

    private ReferenceLocationInfo buildLocationInfo(final JndiReference reference) {
        final String lookupName = reference.getLookupName();
        if (lookupName != null) {
            final ReferenceLocationInfo location = new ReferenceLocationInfo();
            location.jndiName = lookupName;
            return location;
        }

        final String mappedName = reference.getMappedName();
        if (mappedName != null && mappedName.startsWith("jndi:")) {
            final ReferenceLocationInfo location = new ReferenceLocationInfo();
            final String name = mappedName.substring(5);

            if (name.startsWith("ext://")) {
                final URI uri = URLs.uri(name);
                location.jndiProviderId = uri.getHost();
View Full Code Here

    public ReferenceLocationInfo buildLocationInfo(JndiReference reference) {
        String mappedName = reference.getMappedName();
        if (mappedName == null || !mappedName.startsWith("jndi:")) {
            return null;
        }
        ReferenceLocationInfo location = new ReferenceLocationInfo();
        location.jndiName = mappedName.replaceFirst("^jndi:", "");
        return location;
    }
View Full Code Here

    public ReferenceLocationInfo buildLocationInfo(JndiReference reference) {
        String mappedName = reference.getMappedName();
        if (mappedName == null || !mappedName.startsWith("jndi:")) {
            return null;
        }
        ReferenceLocationInfo location = new ReferenceLocationInfo();
        location.jndiName = mappedName.replaceFirst("^jndi:", "");
        return location;
    }
View Full Code Here

    public ReferenceLocationInfo buildLocationInfo(JndiReference reference) {
        String mappedName = reference.getMappedName();
        if (mappedName == null || !mappedName.startsWith("jndi:")) {
            return null;
        }
        ReferenceLocationInfo location = new ReferenceLocationInfo();
        location.jndiName = mappedName.replaceFirst("^jndi:", "");
        return location;
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.assembler.classic.ReferenceLocationInfo

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.