Sha256: fc8a4217bbf8d0049e609d17223b97c3f3788eb351673bfbcf3fdc3d8be04afc
Contents?: true
Size: 1.08 KB
Versions: 30
Compression:
Stored size: 1.08 KB
Contents
/* * Copyright 2010 Proofpoint, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * Copyright 2015 Sadayuki Furuhashi */ package org.embulk.guice; import com.google.common.collect.Maps; import java.util.Map; class LifeCycleMethodsMap { private final Map<Class<?>, LifeCycleMethods> map = Maps.newHashMap(); synchronized LifeCycleMethods get(Class<?> clazz) { LifeCycleMethods methods = map.get(clazz); if (methods == null) { methods = new LifeCycleMethods(clazz); map.put(clazz, methods); } return methods; } }
Version data entries
30 entries across 30 versions & 1 rubygems