Package org.apache.openejb.util

Examples of org.apache.openejb.util.StringTemplate.apply()


           
            if (stringTemplate == null){
                stringTemplate = template.values().iterator().next();
            }
           
            return  stringTemplate.apply(contextData);
         
        }

        @Override public Map<String, String> getNames(Class interfce, Interface type) {
            Map<String, String> names = new HashMap<String, String>();
View Full Code Here


            contextData.put("interfaceType.openejbLegacyName", type.getOpenejbLegacy());
            contextData.put("interfaceClass", interfce.getName());
            contextData.put("interfaceClass.simpleName", interfce.getSimpleName());
            contextData.put("interfaceClass.packageName", packageName(interfce));

            return template.apply(contextData);
        }
    }

    public static class LegacyAddedSuffixStrategy implements JndiNameStrategy {
        private DeploymentInfo deploymentInfo;
View Full Code Here

           
            if (stringTemplate == null){
                stringTemplate = template.values().iterator().next();
            }
           
            return  stringTemplate.apply(contextData);
         
        }

        @Override public Map<String, String> getNames(Class interfce, Interface type) {
            Map<String, String> names = new HashMap<String, String>();
View Full Code Here

           
            if (stringTemplate == null){
                stringTemplate = template.values().iterator().next();
            }
           
            return  stringTemplate.apply(contextData);
         
        }

        @Override public Map<String, String> getNames(Class interfce, Interface type) {
            Map<String, String> names = new HashMap<String, String>();
View Full Code Here

            if (stringTemplate == null) {
                stringTemplate = template.values().iterator().next();
            }

            return stringTemplate.apply(contextData);

        }

        @Override
        public Map<String, String> getNames(final Class interfce, final Interface type) {
View Full Code Here

            contextData.put("interfaceType.openejbLegacyName", type.getOpenejbLegacy());
            contextData.put("interfaceClass", interfce.getName());
            contextData.put("interfaceClass.simpleName", interfce.getSimpleName());
            contextData.put("interfaceClass.packageName", packageName(interfce));

            return template.apply(contextData);
        }
    }

    public static class LegacyAddedSuffixStrategy implements JndiNameStrategy {
        private DeploymentInfo deploymentInfo;
View Full Code Here

            if (stringTemplate == null) {
                stringTemplate = template.values().iterator().next();
            }

            return stringTemplate.apply(contextData);

        }

        @Override
        public Map<String, String> getNames(final Class interfce, final Interface type) {
View Full Code Here

            if (stringTemplate == null) {
                stringTemplate = template.values().iterator().next();
            }

            return stringTemplate.apply(contextData);

        }

        @Override
        public Map<String, String> getNames(final Class interfce, final Interface type) {
View Full Code Here

            if (stringTemplate == null) {
                stringTemplate = template.values().iterator().next();
            }

            return stringTemplate.apply(contextData);

        }

        @Override
        public Map<String, String> getNames(Class interfce, Interface type) {
View Full Code Here

            if (stringTemplate == null) {
                stringTemplate = template.values().iterator().next();
            }

            return stringTemplate.apply(contextData);

        }

        @Override
        public Map<String, String> getNames(Class interfce, Interface type) {
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.