1 23 package com.sun.enterprise.repository; 24 25 import java.util.Set ; 26 27 32 public interface J2EEResource { 33 34 37 int JMS_DESTINATION = 1; 38 int JMS_CNX_FACTORY = 2; 39 int JDBC_RESOURCE = 3; 40 int JDBC_XA_RESOURCE = 4; 41 int JDBC_DRIVER = 5; 42 int CONNECTOR_RESOURCE = 6; 43 int RESOURCE_ADAPTER = 7; 44 45 int JDBC_CONNECTION_POOL = 8; 47 int PMF_RESOURCE = 9; 48 int EXTERNAL_JNDI_RESOURCE = 10; 49 int CUSTOM_RESOURCE = 11; 50 int MAIL_RESOURCE = 12; 52 55 58 String getName(); 59 60 63 int getType(); 64 65 72 Set getProperties(); 73 74 79 void addProperty(ResourceProperty property); 80 81 87 boolean removeProperty(ResourceProperty property); 88 89 93 ResourceProperty getProperty(String propertyName); 94 95 100 J2EEResource makeClone(String name); 101 102 void setEnabled(boolean value); 104 boolean isEnabled(); 105 void setDescription(String value); 106 String getDescription(); 107 } 109 | Popular Tags |