/****************************************************************************** * WebJavin - Java Web Framework. * * * * Copyright (c) 2011 - Sergey "Frosman" Lukjanov, me@frostman.ru * * * * 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 ru.frostman.web.classloading; import javassist.CtClass; import javax.annotation.Nullable; /** * This class contains information about application classes. * * @author slukjanov aka Frostman */ public class AppClass { private String name; private byte[] bytecode; private byte[] enhancedBytecode; private long lastLoaded; private String hashCode; private CtClass ctClass; private Class javaClass; private boolean generated; public AppClass() { } public String getName() { return name; } public void setName(String name) { this.name = name; } public byte[] getBytecode() { return bytecode; } public void setBytecode(byte[] bytecode) { this.bytecode = bytecode; } public byte[] getEnhancedBytecode() { return enhancedBytecode; } public void setEnhancedBytecode(@Nullable byte[] enhancedBytecode) { this.enhancedBytecode = enhancedBytecode; } public long getLastLoaded() { return lastLoaded; } public void setLastLoaded(long lastLoaded) { this.lastLoaded = lastLoaded; } public String getHashCode() { return hashCode; } public void setHashCode(String hashCode) { this.hashCode = hashCode; } public CtClass getCtClass() { return ctClass; } public void setCtClass(CtClass ctClass) { this.ctClass = ctClass; } public Class getJavaClass() { return javaClass; } public void setJavaClass(Class javaClass) { this.javaClass = javaClass; } public boolean isGenerated() { return generated; } public void setGenerated(boolean generated) { this.generated = generated; } }