+ start working on the CacheServer support
This commit is contained in:
Costin Leau
2011-05-09 11:57:47 -07:00
parent e21be75761
commit ba9089b37f

View File

@@ -0,0 +1,50 @@
/*
* Copyright 2011 the original author or authors.
*
* 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.
*/
package org.springframework.data.gemfire.server;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.InitializingBean;
import com.gemstone.gemfire.cache.server.CacheServer;
/**
* @author Costin Leau
*/
public class CacheServerFactoryBean implements FactoryBean<CacheServer>,
InitializingBean, DisposableBean {
private CacheServer cacheServer;
public CacheServer getObject(){
return cacheServer;
}
public Class<?> getObjectType() {
return ((this.cacheServer != null) ? cacheServer.getClass() : CacheServer.class);
}
public boolean isSingleton() {
return true;
}
public void afterPropertiesSet() {
}
public void destroy() {
}
}