Questions tagged as 'instanciar-objeto'

1
answer

Capture information and use when you need Java

I'm thinking of implementing a function that captures the logged in user, I still can not figure out how I can implement that function, I'd like to know what's usual and conducive for me to record the user's name and code while the software runs...
asked by 12.06.2015 / 15:40
2
answers

Object of a class in another Java class

Hello, Is it possible to have the object of the class that instantiated in the instantiated class? Eg: (Incorrect syntax, just a guess) public class Classe2 { // Metodos e vetores da classe } Instance of Class2 in Class1...
asked by 16.06.2015 / 01:13
1
answer

Instantiate a class that inherits an interface class [closed]

I have a class that inherits many classes interfaces, and I want to instantiate it to use only one method, how should I do it? Is it possible to do it without passing all the necessary parameters? public class PontoSituacaoService : IPontoSitu...
asked by 10.10.2017 / 15:38
1
answer

Session variables $ _SESSION vs class variables in PHP

I wanted to know the pros and cons of using session variables in class constructor or even within the methods of a class. Let's say I have the following class: class minhaClasse { private $arrEnvSettings; public function __construc...
asked by 05.05.2016 / 19:12
2
answers

Dynamic declaration in JAVA

I'm doing a work on graphs and I need to read in the file the data entry of a file, for example: VERTICES 0 1 2 3 4 ARESTAS 0 1 2 3 After reading the file I need to instantiate these vertices and edges, I would like to know a way in whi...
asked by 30.10.2015 / 23:53
0
answers

How to pick the selected options in the spinner of another activity

Class I want to check the spinner place, so I can only move to another page if I have selected something, I would use the option selected in Spinner instead in another class. public static Spinner lugar; public static EditText a; @Override pro...
asked by 21.11.2018 / 20:40
0
answers

DWR - Null Classes

Dear I'm having trouble inject classes by calling some methods using DWR with Hibernate. Code: @Controller @Transactional public class ManterArvoreClassificacaoController { @Autowired private ArvoreClassificacaoService acs...
asked by 22.10.2018 / 19:27
0
answers

How to instantiate an object from a deployed class in different EAR

I have 2 projects where each one has a built and deployed EAR in JBOSS. I wanted to instantiate a class that is deployed in Project EAR 2 in project 1. That is, within project one, I wanted to pass the name of the deployed class of project 2 and...
asked by 25.06.2018 / 17:20
0
answers

Instantiate more than one RMI object

I made an application using RMI, however, I need the objects to be started at the same time. In the way I know how to do it, I start for example 5 objects, but in the loop one only starts after the other ends. Follow the client snippet. Th...
asked by 16.04.2018 / 14:49
1
answer

I can not execute a class

So folks, I'm trying to run an application to upload an image to my server. Without saving this data in the database, uploading normally occurs, but when trying to include the image link in the database, php simply does not execute, as if it had...
asked by 30.01.2018 / 16:07